add controls
This commit is contained in:
parent
462a3dbbc5
commit
a57b5ef408
@ -11,7 +11,9 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
body.appendChild(video);
|
body.appendChild(video);
|
||||||
let ctype = xhr.getResponseHeader("Content-Type");
|
let ctype = xhr.getResponseHeader("Content-Type");
|
||||||
console.log(ctype);
|
console.log(ctype);
|
||||||
let player = videojs("video-player");
|
let options = {};
|
||||||
|
options.controls = true;
|
||||||
|
let player = videojs("video-player", options);
|
||||||
let source = {};
|
let source = {};
|
||||||
source.type = ctype;
|
source.type = ctype;
|
||||||
source.src = upstream;
|
source.src = upstream;
|
||||||
|
Loading…
Reference in New Issue
Block a user