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-control");
|
||||||
bigCastButton.addClass("vjs-button");
|
bigCastButton.addClass("vjs-button");
|
||||||
bigCastButton.addClass("vjs-big-chromecast");
|
bigCastButton.addClass("vjs-big-chromecast");
|
||||||
|
|
||||||
|
player.one("canplay", () => {
|
||||||
player.addChild(bigCastButton);
|
player.addChild(bigCastButton);
|
||||||
|
});
|
||||||
|
|
||||||
const smallCastButton = new Button(player, cbutton);
|
const smallCastButton = new Button(player, cbutton);
|
||||||
smallCastButton.addClass("fab");
|
smallCastButton.addClass("fab");
|
||||||
|
Loading…
Reference in New Issue
Block a user