diff --git a/script.js b/script.js index dd9e21e..e99024f 100644 --- a/script.js +++ b/script.js @@ -5,9 +5,10 @@ document.addEventListener("DOMContentLoaded", () => { let xhr = new XMLHttpRequest(); xhr.onreadystatechange = () => { let video = document.createElement("video"); + video.id = "video-player"; body.appendChild(video); let ctype = xhr.getResponseHeader("Content-Type"); - let player = videojs(video); + let player = videojs("video-player"); let source = {}; source.type = ctype; source.src = "{{ stream }}";