fixed total duration display bug.
--- a/src/js/widgets/playerWidget.js Mon Nov 21 15:40:35 2011 +0100
+++ b/src/js/widgets/playerWidget.js Mon Nov 21 15:45:47 2011 +0100
@@ -76,14 +76,13 @@
}
// we get it at each call because it may change.
- var duration = +this._serializer.currentMedia().meta["dc:duration"];
+ var duration = +this._serializer.currentMedia().meta["dc:duration"] / 1000;
var totalTime = IriSP.secondsToTime(duration);
var elapsedTime = IriSP.secondsToTime(this._Popcorn.currentTime());
var timeTemplate = "{{hours}}:{{minutes}}:{{seconds}}";
this.selector.find(".Ldt-ElapsedTime").html(Mustache.to_html(timeTemplate, elapsedTime));
this.selector.find(".Ldt-TotalTime").html(Mustache.to_html(timeTemplate, totalTime));
-
this._previousSecond = this._Popcorn.roundTime();
};