index.html 503 Bytes
Newer Older
1 2 3 4 5 6 7 8
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <script src="https://cdn.jsdelivr.net/npm/hls.js"></script>
    <center>
Jakub Adam's avatar
Jakub Adam committed
9
      <video id="video" autoplay></video>
10 11 12 13 14
    </center>

    <script>
      if(Hls.isSupported()) {
        var video = document.getElementById('video');
Jakub Adam's avatar
Jakub Adam committed
15 16 17
        var hls = new Hls({
          liveDurationInfinity: true
        });
18 19 20 21 22 23
        hls.loadSource('hls/playlist.m3u8');
        hls.attachMedia(video);
      }
    </script>
  </body>
</html>