[Live-devel] two RTP streams at the same time

Ross Finlayson finlayson at live555.com
Wed Aug 23 06:22:15 PDT 2006


>Well, video is working good, but now I'd like to add audio support. 
>The camera streams audio inside a new RTP session. My question is 
>rather basic. The problem is that I don't see what is the link among 
>thoes functions calls, which I used for video. Do I need to have 
>another environment? Or can I just use the same environment, and 
>just have to create another groupsock? Do I have to create a new 
>scheduler too?

No, you use the same "UsageEnvironment" and the same "TaskScheduler" 
(and thus the same event loop).  However, you will need new 
"groupsock"s, and a new "RTPSink" and "RTCPInstance" for the audio 
RTP/RTCP stream.  See the code for the 
"testMPEG1or2AudioVideoStreamer" demo application for an example of 
this.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list