Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Lena Apoyan
11,728 PointsHTML5 video
Where I can read information and see examples of loading chunks into html5 video?
Scenario:
- User starts playing a large video.
- 10-20 seconds of the video should be downloaded.
- If user watches first 10 seconds then next 10 seconds should be downloaded. Thus, there will be no loading if the user watches only the first 9 seconds of the video.
How to do it?
1 Answer
Becky Steele
16,229 PointsHi Lena! Without implementing some sort of onLoad scripting, the best solution to explore would be setting the preload attribute for your <video> tag. See here: http://www.w3schools.com/tags/att_video_preload.asp
Hope that helps!