From a57b5ef40830b19fa820f2d8a5267abf423d64e5 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 12 May 2021 12:27:51 +0200 Subject: [PATCH] add controls --- script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 2dc963a..e9284fa 100644 --- a/script.js +++ b/script.js @@ -11,7 +11,9 @@ document.addEventListener("DOMContentLoaded", () => { body.appendChild(video); let ctype = xhr.getResponseHeader("Content-Type"); console.log(ctype); - let player = videojs("video-player"); + let options = {}; + options.controls = true; + let player = videojs("video-player", options); let source = {}; source.type = ctype; source.src = upstream;