src/js/pop.js
branchpopcorn-port
changeset 448 fa9400275846
parent 445 c2eac11a9053
child 458 5bafddd9e3ba
--- 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" );