reorder chromecast handler

This commit is contained in:
Roy Olav Purser 2021-05-20 14:38:28 +02:00
parent 572c879bb7
commit 014f09b1dd
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -39,10 +39,10 @@
player.src(source);
let Button = videojs.getComponent("ChromecastButton");
let cbutton = {};
let button = new Button(player, cbutton);
cbutton.clickHandler = (ev) => {
player.trigger("chromecastRequested");
}
let button = new Button(player, cbutton);
button.addClass("fab");
button.addClass("fa-chromecast");
button.addClass("vjs-control");