From 846473398486cc69a79f80c8e4a5fc5a21ff944d Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 12 May 2021 14:32:40 +0200 Subject: [PATCH] add video element to dom --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 7c3aaec..638472b 100644 --- a/script.js +++ b/script.js @@ -6,6 +6,7 @@ document.addEventListener("DOMContentLoaded", () => { let upstream = "{{ stream }}"; xhr.addEventListener("load", () => { let video = document.createElement("video"); + video.className = "video-js"; body.appendChild(video); let ctype = xhr.getResponseHeader("Content-Type"); console.log(ctype);