Is it possible to set a timeout value in Wowza, when a publisher doesn’t send any more data, to unpublish a stream?
A little explanation / clarification;
When an encoder is suddenly interrupted (for example; power outage), there is no Disconnect/ Unpublish event in Wowza. The stream would be unpublished and published again if the encoder starts a new session. In our case, this could be hours later (or when Wowza restarts). We would like to set a timeout, so that Wowza “forces” an Disconnect/Unpublish event after a certain period when no data is received. How can we set up a timeout? Is this a configuration setting in Wowza?
This seems to be a solution, to tell the client that the stream has stopped. I would like to “tell” wowza to force a unpublish/disconnect. A restart of wowza does the trick, but that is not what i`m looking for. Is there a server side solution for this?
I`ll explain the situation a little better; we are using the unpublish event in wowza for a custom made module.
The unpublish event is not being triggered when the encoder (push encoder) is not being shutdown properly. The stream is being unpublished when wowza is restarted, if wowza will not be restarted, the stream will be “open” until that moment (more technical; the TCP session stays open and wowza does not unpublish the stream until the tcp session is closed). So i`m looking for a trigger, lets say when an encoder is not sending any more data for X time, the stream will be unpublished by wowza.
So i`m looking for a solution on the server side, the client does not have anything to do with it