add cast button on video load success
This commit is contained in:
parent
ef6674b35b
commit
202f1344a8
@ -54,7 +54,10 @@
|
||||
bigCastButton.addClass("vjs-control");
|
||||
bigCastButton.addClass("vjs-button");
|
||||
bigCastButton.addClass("vjs-big-chromecast");
|
||||
player.addChild(bigCastButton);
|
||||
|
||||
player.one("canplay", () => {
|
||||
player.addChild(bigCastButton);
|
||||
});
|
||||
|
||||
const smallCastButton = new Button(player, cbutton);
|
||||
smallCastButton.addClass("fab");
|
||||
|
Loading…
Reference in New Issue
Block a user