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>
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue