# HG changeset patch # User hamidouk # Date 1323443250 -3600 # Node ID fa940027584678d82876893bec39a102eb381fec # Parent 52aad2da881b61f53251dc451cc791f178abe9a2 added a volume boolen in media. diff -r 52aad2da881b -r fa9400275846 src/js/pop.js --- a/src/js/pop.js Fri Dec 09 16:06:57 2011 +0100 +++ b/src/js/pop.js Fri Dec 09 16:07:30 2011 +0100 @@ -6,7 +6,8 @@ }; IriSP.PopcornReplacement.media = { - "paused": true + "paused": true, + "muted": false }; IriSP.PopcornReplacement.listen = function(msg, callback) { @@ -89,8 +90,10 @@ if (jwplayer(IriSP.PopcornReplacement._container).getMute() !== val) { if (val) { jwplayer(IriSP.PopcornReplacement._container).setMute(true); + IriSP.PopcornReplacement.media.muted = true; } else { jwplayer( IriSP.PopcornReplacement._container ).setMute(false); + IriSP.PopcornReplacement.media.muted = false; } IriSP.PopcornReplacement.trigger( "volumechange" );