diff --git a/video-canvas.html b/video-canvas.html
index 5f58b66..73245ba 100644
--- a/video-canvas.html
+++ b/video-canvas.html
@@ -40,12 +40,12 @@
}
});
-addEvent(video, 'timeupdate', function () {
- position.innerHTML = asTime(this.currentTime);
+setInterval(function () {
+ position.innerHTML = asTime(video.currentTime);
// ctx.restore();
ctx.drawImage(video, 0, 0, video.width, video.height, 0, 0, canvas.width, canvas.height);
-});
+}, 1000 / 15);
addEvent(video, 'ended', function () {
togglePlay.value = "play";
@@ -92,4 +92,4 @@
}