change cast button removal
This commit is contained in:
parent
bf627362b1
commit
23596f3c1b
@ -62,8 +62,8 @@
|
||||
smallCastButton.addClass("vjs-control");
|
||||
smallCastButton.addClass("vjs-button");
|
||||
player.controlBar.addChild(smallCastButton);
|
||||
player.on("play", () => {
|
||||
player.controlBar.removeChild(bigCastButton);
|
||||
player.one("play", () => {
|
||||
player.removeChild(bigCastButton);
|
||||
});
|
||||
player.on("chromecastConnected", () => {
|
||||
if(player.volume() > 0.3) {
|
||||
|
Loading…
Reference in New Issue
Block a user