set id
This commit is contained in:
parent
8fbf8a4f62
commit
ef89f57c83
@ -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 }}";
|
||||
|
Loading…
Reference in New Issue
Block a user