added mute/unmute functionality

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 21:26:16 +01:00
parent 4eaedfe621
commit 0ccf943934
7 changed files with 28 additions and 21 deletions

View File

@@ -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);
}