reorder chromecast handler
This commit is contained in:
parent
572c879bb7
commit
014f09b1dd
@ -39,10 +39,10 @@
|
|||||||
player.src(source);
|
player.src(source);
|
||||||
let Button = videojs.getComponent("ChromecastButton");
|
let Button = videojs.getComponent("ChromecastButton");
|
||||||
let cbutton = {};
|
let cbutton = {};
|
||||||
let button = new Button(player, cbutton);
|
|
||||||
cbutton.clickHandler = (ev) => {
|
cbutton.clickHandler = (ev) => {
|
||||||
player.trigger("chromecastRequested");
|
player.trigger("chromecastRequested");
|
||||||
}
|
}
|
||||||
|
let button = new Button(player, cbutton);
|
||||||
button.addClass("fab");
|
button.addClass("fab");
|
||||||
button.addClass("fa-chromecast");
|
button.addClass("fa-chromecast");
|
||||||
button.addClass("vjs-control");
|
button.addClass("vjs-control");
|
||||||
|
Loading…
Reference in New Issue
Block a user