# HG changeset patch # User hamidouk # Date 1325502875 -3600 # Node ID 04e73ddebfa726d447c5a71c50a44b502fb7ffba # Parent 29a370694c53dfa2fbef30a49bac3f27138d856a the total media duration now displays itself correctly at startup. 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)); diff -r 29a370694c53 -r 04e73ddebfa7 src/templates/player.html --- a/src/templates/player.html Mon Jan 02 11:46:55 2012 +0100 +++ b/src/templates/player.html Mon Jan 02 12:14:35 2012 +0100 @@ -7,9 +7,9 @@
-
+
00:00
/
-
+
00:00