add chromecast button if devices are available
This commit is contained in:
parent
ae37908d64
commit
19532ee690
@ -51,10 +51,12 @@
|
||||
button.addClass("vjs-control");
|
||||
button.addClass("vjs-button");
|
||||
button.addClass("vjs-big-chromecast");
|
||||
player.one("chromecastDevicesAvailable", () => {
|
||||
player.addChild(button);
|
||||
player.one("play", (ev) => {
|
||||
player.one("play", () => {
|
||||
player.removeChild(button);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
document.addEventListener("DOMContentLoaded", handleCount);
|
||||
|
Loading…
Reference in New Issue
Block a user