mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
added mute/unmute functionality
This commit is contained in:
@@ -104,10 +104,12 @@ var Playercontrols = {
|
||||
{
|
||||
if(!Player.player.isMuted())
|
||||
{
|
||||
if(chromecastAvailable) castSession.sendMessage("urn:x-cast:zoff.no", {type: "mute"});
|
||||
Playercontrols.choose_button(0, true);
|
||||
Player.player.mute();
|
||||
}else
|
||||
{
|
||||
if(chromecastAvailable)castSession.sendMessage("urn:x-cast:zoff.no", {type: "unMute"});
|
||||
Player.player.unMute();
|
||||
Playercontrols.choose_button(Player.player.getVolume(), false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user