add controls

This commit is contained in:
Roy Olav Purser 2021-05-12 12:27:51 +02:00
parent 462a3dbbc5
commit a57b5ef408
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -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;