[Live-devel] Query on multiple media subssesions

Ross Finlayson finlayson at live555.com
Thu Jun 25 03:10:07 PDT 2009


>I am trying to stream out an audio and a video stream in a single 
>SDP sessions and would like add these as two separate media 
>sub-sessions. Based on my understanding, I plan to try the following:
>
>sms = ServerMediaSession::createNew(....)
>
>sms->addSubsession(AudioMediaSubsession::createNew(...));
>
>sms->addSubsession(H264MediaSubsession::createNew(...));
>
>rtspServer->addServerMediaSession(sms);
>
>Is my approach correct

Yes, of course.  Note, for example, the "testOnDemandRTSPServer" demo 
application, which does just this.

>or do I have to perform any other separate initializations?

Nothing other than calling "doEventLoop()", to start the server running.
-- 

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


More information about the live-devel mailing list