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

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to