nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

Gracefully handling lost publisher connection; configurable message output

Open jon-freed opened this issue 8 years ago • 3 comments

When you're using nginx-rtmp to accept an input stream and then send out an output stream, is it possible to output some kind of "connection lost; please wait" message when the input stream is abruptly cut off?

This question certainly seems to be related to this SE post: http://video.stackexchange.com/questions/14502/how-to-display-static-image-if-the-input-stream-ends-using-ffmpeg

Perhaps the message could be easily configurable, and perhaps there would be a time-out parameter so that a connection that is lost for more than X number of minutes will result in the end of the output streams?

Does the "drop_idle_publisher" directive already handle this kind of time-out? And in either case, what about the output message?

Thank you!

jon-freed avatar Dec 21 '16 03:12 jon-freed