chromecast volume test

This commit is contained in:
Roy Olav Purser 2021-05-20 18:42:50 +02:00
parent dd9be53140
commit a62b49e398
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -57,7 +57,9 @@
player.removeChild(button); player.removeChild(button);
}); });
player.on("chromecastConnected", () => { player.on("chromecastConnected", () => {
player.volume(0.1); if(player.volume() > 0.3) {
player.volume(0.3);
}
}); });
} }
document.addEventListener("DOMContentLoaded", handleCount); document.addEventListener("DOMContentLoaded", handleCount);