fixed button display bug. popcorn-port
authorhamidouk
Wed, 14 Dec 2011 12:09:45 +0100
branchpopcorn-port
changeset 458 5bafddd9e3ba
parent 457 fbcb991cc595
child 459 2e24cfc58570
fixed button display bug.
src/js/pop.js
src/js/widgets/playerWidget.js
--- a/src/js/pop.js	Wed Dec 14 11:26:44 2011 +0100
+++ b/src/js/pop.js	Wed Dec 14 12:09:45 2011 +0100
@@ -42,6 +42,7 @@
 
 IriSP.PopcornReplacement.__initApi = function() {
   IriSP.PopcornReplacement.trigger("timeupdate");
+  IriSP.PopcornReplacement.media.muted = jwplayer(IriSP.PopcornReplacement._container).getMute();
 };
 
 IriSP.PopcornReplacement.jwplayer = function(container, options) {
--- a/src/js/widgets/playerWidget.js	Wed Dec 14 11:26:44 2011 +0100
+++ b/src/js/widgets/playerWidget.js	Wed Dec 14 12:09:45 2011 +0100
@@ -46,6 +46,8 @@
   // trigger an IriSP.PlayerWidget.MouseOver to the widgets that are interested (i.e : sliderWidget)
   this.selector.hover(function() { self._Popcorn.trigger("IriSP.PlayerWidget.MouseOver"); }, 
                       function() { self._Popcorn.trigger("IriSP.PlayerWidget.MouseOut"); });
+ 
+  this.muteButtonUpdater(); /* some player - jwplayer notable - save the state of the mute button between sessions */
 };
 
 /* Update the elasped time div */