reduce volume for chromecast

This commit is contained in:
Roy Olav Purser 2021-05-20 15:01:56 +02:00
parent 1bdb9ba621
commit ae37908d64
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -40,6 +40,9 @@
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);