Skip to content

Commit 3ba2931

Browse files
committed
canplay => loadedmetadata
1 parent 2b7cb01 commit 3ba2931

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demos/video.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
togglePlay.value = "play";
4444
});
4545

46-
addEvent(video, 'canplay', function () {
46+
// this used to be canplay, but really it should have been loadedmetadata - sorry folks
47+
addEvent(video, 'loadedmetadata', function () {
4748
video.muted = true;
4849
ready = true;
4950
document.querySelector('#duration').innerHTML = asTime(this.duration);

0 commit comments

Comments
 (0)