try to disable volume control
This commit is contained in:
parent
19532ee690
commit
4de5d09382
@ -40,9 +40,6 @@
|
||||
let Button = videojs.getComponent("Button");
|
||||
let cbutton = {};
|
||||
cbutton.clickHandler = (ev) => {
|
||||
if(player.volume() > 0.5) {
|
||||
player.volume(0.1);
|
||||
}
|
||||
player.trigger("chromecastRequested");
|
||||
}
|
||||
let button = new Button(player, cbutton);
|
||||
@ -51,6 +48,8 @@
|
||||
button.addClass("vjs-control");
|
||||
button.addClass("vjs-button");
|
||||
button.addClass("vjs-big-chromecast");
|
||||
|
||||
player.chromecastSessionManager.remotePlayer.canControlVolume = false;
|
||||
player.one("chromecastDevicesAvailable", () => {
|
||||
player.addChild(button);
|
||||
player.one("play", () => {
|
||||
|
Loading…
Reference in New Issue
Block a user