[Live-devel] End RTSP client session cleanly

Patrick White patbob at imoveinc.com
Tue Mar 31 08:36:45 PDT 2009


On Tuesday 31 March 2009 6:16 am, Ross Finlayson wrote:
> >What is the correct way to initiate the shutdown of a specific
> >RTSP client session from the server side?
>
> Right now there isn't a clean way to do this, unfortunately.  If you
> know the "RTSPServer::RTSPClientSession" object, then you could try
> deleting it; that will likely work.

That does work -- it's what we do and how inactive sessions are terminated by 
the server.  From my examining of the code, it looks like it cleans 
everything up properly too :).  However, the client gets no notification that 
it happened -- the RTSP stream is just rudely closed and RTP data stops 
arriving.  This gets back to the RTCP BYE message not gettng sent issue Matt 
was talking about a few weeks ago.

FYI, you'll have to invent a mechanism to be able to get a pointer to the 
running RTCPClientSession instance so you can call its destructor.. and of 
course you can only do it safely via a scheduled task.



More information about the live-devel mailing list