# HG changeset patch # User hamidouk # Date 1323860985 -3600 # Node ID 5bafddd9e3bae73c4086cca3c9884afe76815750 # Parent fbcb991cc5953bf8a95534cfd0c19427c2c514e1 fixed button display bug. diff -r fbcb991cc595 -r 5bafddd9e3ba src/js/pop.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) { diff -r fbcb991cc595 -r 5bafddd9e3ba src/js/widgets/playerWidget.js --- 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 */