In the video example, the initial HLS playlist does not exist. An offline image with a retry interval countdown is displayed. After the first or second retry attempt (10-second interval), live video is back online.
Live video offline plugin details
The offline plugin is initialized on initial stream playlist errors (e.g., 404 error), when the network is disconnected while playing, when the internet connection goes down, or when the stream is broken. The plugin attempts to reconnect the stream automatically at user-defined intervals (default: every 30 seconds). The offline plugin includes three easy-to-understand options.- offlineImage - URL of the offline Image
- offlineTimeout (default 30) - timeout value (seconds) for offlineImage to retry live stream
- offlineCountdown (default true) - set false to disable visible countdown
Code snippet
<script src="//domain.com/videojs/videojs.min.js"></script><script src="//domain.com/videojs/nuevo.min.js"></script><script src="//domain.com/videojs/plugins/videojs.offline.js"></script>
<script>const player = videojs('my_player', {license:"key"});player.nuevo();player.offline({offlineImage: "//domain.com/path-to-video-image.jpg"});</script>Code snippet
<script>player.offline({offlineImage:"//domain.com/path-to-video-image.jpg",offlineTimeout:20,offlineCountdown:false,label:"Neustart"});</script>The offline plugin is free to use by Nuevo Software Gold and Premium plan license holders. Other video.js users can purchase the plugin separately here.