Browse files

Use preload="auto" on videos that expect to get the canplay event

Since the default state is metadata, there's no guarantee that the
videos will reach anything beyond HAVE_CURRENT_DATA, but the canplay
event is fired when reaching HAVE_FUTURE_DATA.
  • Loading branch information...
foolip committed Dec 14, 2011
1 parent ee07522 commit 34a2e5a476e4b2daa5f8e5e8990ad68e58ba053b
Showing with 2 additions and 2 deletions.
  1. +2 −2 demos/two-videos.html
@@ -10,11 +10,11 @@
<title>Two videos in sync</title>
- <video id="one">
+ <video preload="auto" id="one">
<source src="assets/dizzy.mp4" />
<source src="assets/dizzy.ogv" />
- <video id="two">
+ <video preload="auto" id="two">
<source src="assets/dizzy.mp4" />
<source src="assets/dizzy.ogv" />

0 comments on commit 34a2e5a

Please sign in to comment.