From ef89f57c8317ad0755c46a98b066b564329ecfd2 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 12 May 2021 10:33:29 +0200 Subject: [PATCH] set id --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }}";