[Live-devel] How to close a serverMediaSession and its subsessions

Kam Wai-ip galaxy at novosun.com
Sun Jan 3 19:34:19 PST 2010

Dear Ross
  Thanks for your help.

On Sat, Jan 2, 2010 at 2:15 PM, Ross Finlayson <finlayson at live555.com>wrote:

> 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.
>> What I am doing now is simply do the following code
>>    m_RTSP->RemoveServerMediaSession(sms);
> Correct.
>     sms->Close();
> No, there's no such function.
>  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.
> There's currently no way in the code to do this (other than having the
> client send a RTSP "TEARDOWN" command).
> --
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100104/9145c2bc/attachment.html>

More information about the live-devel mailing list