From 47ae9df9b6adde1b8e5ecfb5a10c2a02eaad91fa Mon Sep 17 00:00:00 2001 From: kevinmeziere Date: Mon, 16 Apr 2012 05:03:23 -0700 Subject: [PATCH] Changed time minute/second calculation to use floor instead of round, for accurate time calculation. --- demos/video.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/video.html b/demos/video.html index 54cc2ee..5a140ee 100644 --- a/demos/video.html +++ b/demos/video.html @@ -95,7 +95,7 @@ if (video.readyState > 0) { // metadata is loaded already - fire the event handl function asTime(t) { t = Math.round(t); var s = t % 60; - var m = Math.round(t / 60); + var m = Math.floor(t / 60); return two(m) + ':' + two(s); }