src/widgets/Controller.js
branchnew-model
changeset 919 972099304059
parent 917 eb8677d3a663
child 948 3f57e95c2138
child 1019 3ab36f402b0c
equal deleted inserted replaced
918:5cd368dba1b9 919:972099304059
    90     this.bindPopcorn("play","playButtonUpdater");
    90     this.bindPopcorn("play","playButtonUpdater");
    91     this.bindPopcorn("pause","playButtonUpdater");
    91     this.bindPopcorn("pause","playButtonUpdater");
    92     this.bindPopcorn("volumechange","volumeUpdater");
    92     this.bindPopcorn("volumechange","volumeUpdater");
    93     this.bindPopcorn("timeupdate","timeDisplayUpdater");
    93     this.bindPopcorn("timeupdate","timeDisplayUpdater");
    94     this.bindPopcorn("loadedmetadata","timeDisplayUpdater");
    94     this.bindPopcorn("loadedmetadata","timeDisplayUpdater");
       
    95     this.bindPopcorn("loadedmetadata","volumeUpdater");
    95     this.bindPopcorn("IriSP.search.matchFound","searchMatch");
    96     this.bindPopcorn("IriSP.search.matchFound","searchMatch");
    96     this.bindPopcorn("IriSP.search.noMatchFound","searchNoMatch");
    97     this.bindPopcorn("IriSP.search.noMatchFound","searchNoMatch");
    97     this.bindPopcorn("IriSP.search.triggeredSearch","triggeredSearch");
    98     this.bindPopcorn("IriSP.search.triggeredSearch","triggeredSearch");
    98     
    99     
    99     // handle clicks
   100     // handle clicks
   137             _this.player.popcorn.trigger("IriSP.Player.MouseOver");
   138             _this.player.popcorn.trigger("IriSP.Player.MouseOver");
   138         }, 
   139         }, 
   139         function() {
   140         function() {
   140             _this.player.popcorn.trigger("IriSP.Player.MouseOut");
   141             _this.player.popcorn.trigger("IriSP.Player.MouseOut");
   141         });
   142         });
   142     setTimeout(this.functionWrapper("volumeUpdater"), 1000);
       
   143     /* some players - including jwplayer - save the state of the mute button between sessions */
   143     /* some players - including jwplayer - save the state of the mute button between sessions */
       
   144 
       
   145     window.setTimeout(this.functionWrapper("volumeUpdater"), 1000);
       
   146    
   144 };
   147 };
   145 
   148 
   146 /* Update the elasped time div */
   149 /* Update the elasped time div */
   147 IriSP.Widgets.Controller.prototype.timeDisplayUpdater = function() {
   150 IriSP.Widgets.Controller.prototype.timeDisplayUpdater = function() {
   148     var _curTime = this.player.popcorn.roundTime();
   151     var _curTime = this.player.popcorn.roundTime();