src/js/widgets/playerWidget.js
branchpopcorn-port
changeset 559 04e73ddebfa7
parent 540 b1f3aee23199
child 564 a560a162f444
equal deleted inserted replaced
558:29a370694c53 559:04e73ddebfa7
    22   this._Popcorn.listen("play", IriSP.wrap(this, this.playButtonUpdater));
    22   this._Popcorn.listen("play", IriSP.wrap(this, this.playButtonUpdater));
    23   this._Popcorn.listen("pause", IriSP.wrap(this, this.playButtonUpdater));
    23   this._Popcorn.listen("pause", IriSP.wrap(this, this.playButtonUpdater));
    24   
    24   
    25   this._Popcorn.listen("volumechange", IriSP.wrap(this, this.muteButtonUpdater));
    25   this._Popcorn.listen("volumechange", IriSP.wrap(this, this.muteButtonUpdater));
    26 
    26 
    27   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.timeDisplayUpdater));
    27   this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.timeDisplayUpdater));  
       
    28   // update the time display for the first time.
       
    29   this._Popcorn.listen("loadedmetadata", IriSP.wrap(this, this.timeDisplayUpdater));
       
    30   
    28   this._Popcorn.listen("IriSP.search.matchFound", IriSP.wrap(this, this.searchMatch));
    31   this._Popcorn.listen("IriSP.search.matchFound", IriSP.wrap(this, this.searchMatch));
    29   this._Popcorn.listen("IriSP.search.noMatchFound", IriSP.wrap(this, this.searchNoMatch));
    32   this._Popcorn.listen("IriSP.search.noMatchFound", IriSP.wrap(this, this.searchNoMatch));
    30   
    33   
    31   
    34   
    32   this.selector.find(".Ldt-CtrlPlay").click(function() { self.playHandler.call(self); });
    35   this.selector.find(".Ldt-CtrlPlay").click(function() { self.playHandler.call(self); });