From ae37908d6497a15688fb9dfebf6a98893163f09b Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Thu, 20 May 2021 15:01:56 +0200 Subject: [PATCH] reduce volume for chromecast --- frontend/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/script.js b/frontend/script.js index 0d527ca..2f64545 100644 --- a/frontend/script.js +++ b/frontend/script.js @@ -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);