add cast button on video load success

This commit is contained in:
Roy Olav Purser 2021-05-23 22:02:33 +02:00
parent ef6674b35b
commit 202f1344a8
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -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.addChild(bigCastButton);
player.one("canplay", () => {
player.addChild(bigCastButton);
});
const smallCastButton = new Button(player, cbutton); const smallCastButton = new Button(player, cbutton);
smallCastButton.addClass("fab"); smallCastButton.addClass("fab");