[Live-devel] Stopping RTSP session from server side

Paul Clark paul at packetship.com
Tue Dec 23 03:13:08 PST 2008


Mikhlin Michael wrote:
> Thanks for quick reply.
>  
> I'm looking for a gracefull shutdown, so that the client will know 
> that the session is closed.

There is the server-to-client ANNOUNCE method, something like this:

ANNOUNCE rtsp://server/asset RTSP/1.0
CSeq: 1
Session: 1234
Notice: 2101 End of Stream

I think use of ANNOUNCE for this, and the 'Notice' header, come from a 
pre-RTSP-1.1 draft by Sheedy (nCube):

  
http://www-rn.informatik.uni-bremen.de/ietf/mmusic/47/id/draft-sheedy-mmusic-rtsp-ext-00.txt 
(sec. 5.1)

There are also some attempts to reintroduce it in RTSP/2.0 - e.g.

  http://tools.ietf.org/html/draft-stiemerling-rtsp-announce-01

Several set-top-boxes (e.g Amino) and commercial servers (including 
ours) support it.   I don't know if Live555 supports ANNOUNCE, though - 
Ross?

Alternatively, we've found that VLC will accept an empty RTP packet as 
indicating end-of-stream, so we do that too.  Non-standard, but not 
entirely unreasonable, I guess.

Hope this helps

Paul
--
Paul Clark
Packet Ship Technologies Limited
http://www.packetship.com



More information about the live-devel mailing list