diff -r c4c876db76fb -r a5977736d2b0 web/res/metadataplayer/Controller.js --- a/web/res/metadataplayer/Controller.js Tue Jul 03 18:19:39 2012 +0200 +++ b/web/res/metadataplayer/Controller.js Fri Jul 06 18:22:13 2012 +0200 @@ -92,6 +92,7 @@ this.bindPopcorn("volumechange","volumeUpdater"); this.bindPopcorn("timeupdate","timeDisplayUpdater"); this.bindPopcorn("loadedmetadata","timeDisplayUpdater"); + this.bindPopcorn("loadedmetadata","volumeUpdater"); this.bindPopcorn("IriSP.search.matchFound","searchMatch"); this.bindPopcorn("IriSP.search.noMatchFound","searchNoMatch"); this.bindPopcorn("IriSP.search.triggeredSearch","triggeredSearch"); @@ -139,8 +140,10 @@ function() { _this.player.popcorn.trigger("IriSP.Player.MouseOut"); }); - setTimeout(this.functionWrapper("volumeUpdater"), 1000); /* some players - including jwplayer - save the state of the mute button between sessions */ + + window.setTimeout(this.functionWrapper("volumeUpdater"), 1000); + }; /* Update the elasped time div */