added a volume boolen in media.
--- 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" );