to run with custom hls-player instead of hls.js
This commit is contained in:
parent
6677ec6afd
commit
8be70f035b
1 changed files with 2 additions and 10 deletions
|
@ -6,14 +6,6 @@
|
||||||
<body>
|
<body>
|
||||||
<video id=vid1 autoplay muted></video>
|
<video id=vid1 autoplay muted></video>
|
||||||
</body>
|
</body>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
|
<script src="/static/hls-player.js"></script>
|
||||||
<script>
|
<script>var stream = new VideoLoader('vid1');</script>
|
||||||
var video = document.getElementById("vid1");
|
|
||||||
var videoSrc = "/list/{{.}}";
|
|
||||||
if (Hls.isSupported()) {
|
|
||||||
var hls = new Hls();
|
|
||||||
hls.loadSource(videoSrc);
|
|
||||||
hls.attachMedia(video);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue