Dear Ross<br> Thanks for your help.<br><br><div class="gmail_quote">On Sat, Jan 2, 2010 at 2:15 PM, Ross Finlayson <span dir="ltr"><<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>
</blockquote>
<br></div>
Correct.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
sms->Close();<br>
</blockquote>
<br>
No, there's no such function.<div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>
</blockquote>
<br></div>
There's currently no way in the code to do this (other than having the client send a RTSP "TEARDOWN" command).<br>
-- <br><font color="#888888">
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" target="_blank">http://www.live555.com/</a><br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</font></blockquote></div><br>