add video element to dom
This commit is contained in:
parent
9a5ef2ca60
commit
8464733984
@ -6,6 +6,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
let upstream = "{{ stream }}";
|
let upstream = "{{ stream }}";
|
||||||
xhr.addEventListener("load", () => {
|
xhr.addEventListener("load", () => {
|
||||||
let video = document.createElement("video");
|
let video = document.createElement("video");
|
||||||
|
video.className = "video-js";
|
||||||
body.appendChild(video);
|
body.appendChild(video);
|
||||||
let ctype = xhr.getResponseHeader("Content-Type");
|
let ctype = xhr.getResponseHeader("Content-Type");
|
||||||
console.log(ctype);
|
console.log(ctype);
|
||||||
|
Loading…
Reference in New Issue
Block a user