Videojs - reconnect live stream automatically
When you attempt to play live stream, but media server is down or disconnected the the video.js player keeps loading playlist continuously every 5 seconds about. If you leave the website page in this state or try to reconnect media server by reloading video source programmatically, after few minutes the browser may crash due to lack of memory.
Videojs fires "retryplaylist" event every 5 seconds about, when the only one HLS playlist or final rendition of the HLS playlist failed to load media file. In Nuevo plugin (from version 6.0.1) we have added a few options to limit the number of playlist loading retries and play "offline" video once the limit reached. When "offline" video ended, the browser is automatically refreshed and attempts to load Hls playlist again.