From 3ba2931b6d14cbd21bb283f785cac0b8df3d7920 Mon Sep 17 00:00:00 2001 From: remy Date: Fri, 13 May 2011 23:59:01 +0100 Subject: [PATCH] canplay => loadedmetadata --- demos/video.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demos/video.html b/demos/video.html index 50249ca..48391ce 100644 --- a/demos/video.html +++ b/demos/video.html @@ -43,7 +43,8 @@ addEvent(video, 'ended', function () { togglePlay.value = "play"; }); -addEvent(video, 'canplay', function () { +// this used to be canplay, but really it should have been loadedmetadata - sorry folks +addEvent(video, 'loadedmetadata', function () { video.muted = true; ready = true; document.querySelector('#duration').innerHTML = asTime(this.duration);