[Live-devel] Stopping the server doesn't actually stop

Ross Finlayson finlayson at live555.com
Thu May 31 06:18:22 PDT 2012


>  m_rtspServer->removeServerMediaSession((*itr).second);

Calling "RTSPServer::removeServerMediaSession()" merely removes the "ServerMediaSession" (and thus also its "ServerMediaSubsession"s) from the RTSP server, so that clients can no longer start any new streams using its name.  It does not stop any streaming to any client(s) that might currently be underway.

If you want to stop - from the server - the actual streaming from the server to a client, then you'll need to delete the corresponding "RTSPServer::RTSPClientSession" object.  (If you want to stop the streaming from the client end, of course, you simply send a RTSP "TEARDOWN" command, which causes the same thing to happen at the server end - i.e., it causes the "RTSPServer::RTSPClientSession" object to be deleted.)

Actually, if you want clients to be able to restart the stream afterwards, then you probably shouldn't be calling "RTSPServer::removeServerMediaSession()" at all.  There's no real point in calling "removeServerMediaSession()", and then "addServerMediaSession()" afterwards to reinstate it.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120531/6a7b55bc/attachment.html>


More information about the live-devel mailing list