Live HLS End Stream

Live HLS end of stream detection with supported servers.

    <div class="flex w-full h-auto my-auto">
      <video class="video-js vjs-default-skin vjs-fluid " crossorigin="anonymous" controls="" id="endofstream"></video>
  </div>
  <script type="text/javascript">
  	var player = videojs("endofstream", {
    "live": true,
    "liveui": true,
    "plugins": {
        "liveoffline": {
            "autoreconnect": true,
            "offline": "Offline",
            "reconnect": "Reconnecting In ",
            "reconnectTime": 30
        }
    },
    "sources": [
        {
            "src": "https://videos.electroteque.org/hls/bigbuckbunny/playlist.m3u8",
            "type": "application/x-mpegurl"
        }
    ]
});
  </script>