reduce volume for chromecast
This commit is contained in:
parent
1bdb9ba621
commit
ae37908d64
@ -40,6 +40,9 @@
|
|||||||
let Button = videojs.getComponent("Button");
|
let Button = videojs.getComponent("Button");
|
||||||
let cbutton = {};
|
let cbutton = {};
|
||||||
cbutton.clickHandler = (ev) => {
|
cbutton.clickHandler = (ev) => {
|
||||||
|
if(player.volume() > 0.5) {
|
||||||
|
player.volume(0.1);
|
||||||
|
}
|
||||||
player.trigger("chromecastRequested");
|
player.trigger("chromecastRequested");
|
||||||
}
|
}
|
||||||
let button = new Button(player, cbutton);
|
let button = new Button(player, cbutton);
|
||||||
|
Loading…
Reference in New Issue
Block a user