add text to cast button
This commit is contained in:
parent
85465b2f3a
commit
6d5baafecc
@ -6,7 +6,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
if(bodies.length === 1) {
|
if(bodies.length === 1) {
|
||||||
let body = bodies[0];
|
let body = bodies[0];
|
||||||
let cast = document.createElement("button");
|
let cast = document.createElement("button");
|
||||||
body.appendChild(cast);
|
cast.innerHtml = "Google Cast";
|
||||||
let cjs = new Castjs();
|
let cjs = new Castjs();
|
||||||
cast.addEventListener("click", () => {
|
cast.addEventListener("click", () => {
|
||||||
if(cjs.available) {
|
if(cjs.available) {
|
||||||
@ -18,6 +18,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
let video = document.createElement("video");
|
let video = document.createElement("video");
|
||||||
video.className = "video-js";
|
video.className = "video-js";
|
||||||
body.appendChild(video);
|
body.appendChild(video);
|
||||||
|
body.appendChild(cast);
|
||||||
let ctype = xhr.getResponseHeader("Content-Type");
|
let ctype = xhr.getResponseHeader("Content-Type");
|
||||||
console.log(ctype);
|
console.log(ctype);
|
||||||
let options = {};
|
let options = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user