Changed time minute/second calculation to use floor instead of round, for accurate time calculation.
This commit is contained in:
parent
8eb9d573c2
commit
47ae9df9b6
|
@ -95,7 +95,7 @@ if (video.readyState > 0) { // metadata is loaded already - fire the event handl
|
||||||
function asTime(t) {
|
function asTime(t) {
|
||||||
t = Math.round(t);
|
t = Math.round(t);
|
||||||
var s = t % 60;
|
var s = t % 60;
|
||||||
var m = Math.round(t / 60);
|
var m = Math.floor(t / 60);
|
||||||
|
|
||||||
return two(m) + ':' + two(s);
|
return two(m) + ':' + two(s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue