The “test*Streamer” and “test*Receiver” test programs use multicast. Can I modify them to use unicast instead?
Yes, you can do this, but you should first convince yourself that this is something that you really want to do. If you’re streaming over a LAN, then you should continue to use multicast – it’s simpler, and allows more than one receiver to access the stream, without data duplication. The only time you should consider using unicast is if you are streaming over a wider-area network that does not support multicast routing. (Note also that the RTSP server that’s built in to the “test*Streamer” programs does not work with unicast streams. To play unicast streams from a RTSP server, you should instead use the existing “testOnDemandRTSPServer” test program as a model. This is usually better than trying to modify one of the “test*Streamer” applications.) If you still wish to change the “test*Streamer” programs to stream using unicast, then do the following: • In “test*Streamer.cpp”, change “destinationAddressStr” to the (unicast) IP address of the intended destination. • In the corresponding “t
Related Questions
- The "test*Streamer" test programs read from a file. Can I modify them so that they take input from a H.264 or MPEG encoder instead, so I can stream live (rather than prerecorded) video and/or audio?
- The "test*Streamer" test programs read from a file. Can I modify them so that they take input from a MPEG encoder instead, so I can stream live (rather than prerecorded) video and/or audio?
- The "test*Streamer" and "test*Receiver" test programs use multicast. Can I modify them to use unicast instead?