to run with custom hls-player instead of hls.js

This commit is contained in:
Muaz Ahmad 2023-08-24 15:20:30 +05:00
parent 6677ec6afd
commit 8be70f035b

View file

@ -6,14 +6,6 @@
<body>
<video id=vid1 autoplay muted></video>
</body>
<script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
<script>
var video = document.getElementById("vid1");
var videoSrc = "/list/{{.}}";
if (Hls.isSupported()) {
var hls = new Hls();
hls.loadSource(videoSrc);
hls.attachMedia(video);
}
</script>
<script src="/static/hls-player.js"></script>
<script>var stream = new VideoLoader('vid1');</script>
</html>