Dear all<br>This problem confused me for quite awhile, I cannot find a right way to close a serverMediaSession dynamically. What I need is, I want to keep the stream server running and close one of the many sessions.<br>What I am doing now is simply do the following code<br>
m_RTSP->RemoveServerMediaSession(sms);<br> sms->Close();<br>However, this code works only when the session does not have any refernced client, but I need it to be closed whenever I ask it to close, without waiting for all its clients to stop.<br>
Moreover, I check your mailist, some said I also need to do<br> Medium::close(source);<br>But since I create my own serverMediaSubsession inherited from OnDemandServerMediaSubsession, and I did not find the reference of the framedSource, so do u mean I need to reference the framedSource(s) on my own code??<br>
So the three questions are<br> What is the correct way to close the serverMediaSession?<br> How can I force a serverMediaSession and its subsessions to be closed whenever I want it to close, without the clients sending stop signal?<br>
How can I get the framedSource(s) of the subsession, (I did not use PassiveServerMediaSubsession)?<br><br> Thanks for your time!!<br> Wai<br>