hls.js@latest

Versions:

      
var video = document.getElementById("video");
var videoSrc =
"https://sample-videos-zyrkp2nj.s3-eu-west-1.amazonaws.com/big-buck-bunny/hls/master-test-20210305.m3u8";

var hls = new Hls({
  autoStartLoad: false,
  debug: true,
});

hls.on(Hls.Events.MANIFEST_PARSED, () => {
  hls.startLoad(10);
});
hls.loadSource(videoSrc);
hls.attachMedia(video);