set id
This commit is contained in:
parent
8fbf8a4f62
commit
ef89f57c83
@ -5,9 +5,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
let xhr = new XMLHttpRequest();
|
let xhr = new XMLHttpRequest();
|
||||||
xhr.onreadystatechange = () => {
|
xhr.onreadystatechange = () => {
|
||||||
let video = document.createElement("video");
|
let video = document.createElement("video");
|
||||||
|
video.id = "video-player";
|
||||||
body.appendChild(video);
|
body.appendChild(video);
|
||||||
let ctype = xhr.getResponseHeader("Content-Type");
|
let ctype = xhr.getResponseHeader("Content-Type");
|
||||||
let player = videojs(video);
|
let player = videojs("video-player");
|
||||||
let source = {};
|
let source = {};
|
||||||
source.type = ctype;
|
source.type = ctype;
|
||||||
source.src = "{{ stream }}";
|
source.src = "{{ stream }}";
|
||||||
|
Loading…
Reference in New Issue
Block a user