diff -r 29a370694c53 -r 04e73ddebfa7 src/js/widgets/playerWidget.js --- a/src/js/widgets/playerWidget.js Mon Jan 02 11:46:55 2012 +0100 +++ b/src/js/widgets/playerWidget.js Mon Jan 02 12:14:35 2012 +0100 @@ -24,7 +24,10 @@ this._Popcorn.listen("volumechange", IriSP.wrap(this, this.muteButtonUpdater)); - this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.timeDisplayUpdater)); + this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.timeDisplayUpdater)); + // update the time display for the first time. + this._Popcorn.listen("loadedmetadata", IriSP.wrap(this, this.timeDisplayUpdater)); + this._Popcorn.listen("IriSP.search.matchFound", IriSP.wrap(this, this.searchMatch)); this._Popcorn.listen("IriSP.search.noMatchFound", IriSP.wrap(this, this.searchNoMatch));