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

Ross Finlayson finlayson at live555.com
Fri Jan 1 22:15:28 PST 2010

>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);


>     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.

More information about the live-devel mailing list