[Live-devel] openRTSP (File Output / Session Timeout)
Ross Finlayson
finlayson at live555.com
Mon Dec 23 16:34:34 PST 2013
> I have a quick question regarding the expected behavior of openRTSP client w/ file output when connection to the server is lost due to reboot, loss of connectivity...etc.
The rest of your message didn't contain a question :-) However...
The only reliable way for a client to detect when a server 'dies' is to notice that RTP packets from the server stop arriving. (Note that a TCP connection can stay alive for a long time after the remote end dies, so you can't reliably detect this from the TCP connection.)
You can detect this in "openRTSP" using the "-D <maximum-inter-packet-gap>" option; see http://www.live555.com/openRTSP/#playing-time
Note, however, that "openRTSP" uses a single connection only, and does not - by itself - attempt to reconnect to a dead server. If you want to do that, you'll need to run "openRTSP" a separate time, e.g. from a shell script.
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/20131224/2214d02d/attachment.html>
More information about the live-devel
mailing list