[Live-devel] Aborting RTSP session

Jeff Shanab jshanab at smartwire.com
Wed Nov 23 14:25:28 PST 2011


Thanks. For now I am setting a little watchdog timer to change the watchvariable.  I will take a look at the openRTSP example over the holidays and modify my client over to the async.

From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Wednesday, November 23, 2011 4:13 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Aborting RTSP session

I have a problematic encoder that goes thru the entire rtsp conversation and then if it has no video sends a BYE request after 30 seconds.
I am trying to figure out how I can abort this process.

Just to be clear - you're talking about wanting to abort the RTSP *client* process, right (not the RTSP server that's sending the BYE)?



It looks like after live555 sends the PLAY request , it is in the event loop (which has a fast freq) waiting fro an event.

Yes, because you're using the synchronous RTSP client interface.  As I've noted in the past, you can't close your "RTSPClient" from within your "BYE" handler - because at this point you're still within the synchronous "playMediaSession()" routine.  But the problem you face is that your server never responds to the RTSP "PLAY" command, so you're never going to return from "playMediaSession()".

Your situation is a perfect illustration of why the synchronous RTSP client interface is deprecated (and will someday go away).  You need to be using the asynchronous interface instead.  That way you'll avoid the problem; you will simply be able to close the "RTSPClient" object from within your "BYE" handler.

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/20111123/aa953ce8/attachment.html>


More information about the live-devel mailing list