try to disable volume control

This commit is contained in:
Roy Olav Purser 2021-05-20 15:33:35 +02:00
parent 19532ee690
commit 4de5d09382
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -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", () => {