[Live-devel] Test relay ?!
Ross Finlayson
finlayson at live555.com
Fri Jan 6 01:03:53 PST 2012
> Hallo, I would like to modify testRelay.cpp to receive udp live input and then rtsp to be output (rtsp://xxx.xxx.xxx.xxx:4444), otherwise udp to udp relay work excellent but I want toforward in the RTSP so that others can see, If you can show me I am a beginner in this ?!
Yes, you can do this; however, "testRelay" is not the best application to use as a starting point, because most of the functionality of your new application will be in the RTSP server.
Therefore, I suggest that you instead use "testOnDemandRTSPServer" as a model.
For information on how to adapt this to use a UDP stream as a data source, see
http://www.live555.com/liveMedia/faq.html#liveInput-unicast
As noted in the FAQ, you will need to define your own subclass of "OnDemandServerMediaSubsession, and redefine the "createNewStreamSource()" virtual function. This is where you would use the "testRelay" code as a guide. Your subclass's "createNewStreamSource()" virtual function can be quite simple - basically just creating a "groupsock" for your IP multicast address, and then creating a "BasicUDPSource" using that "groupsock" object.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120106/3c2b9e70/attachment.html>
More information about the live-devel
mailing list