HTML5 Video Tips
Matcha Design - Tuesday, November 1, 2011
HTML5 has a lot of new features. One of the coolest but not often utilized is the newelement. It allows pages to embed video files without requiring the user to download a plugin. By default YouTube videos use HTML5 if the user's browser supports it, and use Flash otherwise.
One of the unfortunate things about HTML5 Video is a lack of consistently supported formats - each browser supports its own list of formats, and there's no single format supported by all of them. There is a built-in way of dealing with it, but unfortunately it still means encoding your video to multiple formats. Once you've done that though, you can put a element in yourelement for each version, and the browser will automatically go through them until it finds one it supports.
For browsers that don't support HTML5 Video, you can put fallback code inside the element just like the
About Matcha Design
Matcha Design is a full-service creative agency specializing in web design, print, identity, branding, interface design, video production, still photography and motion design. Using our passion for excellence, multi-cultural background, and award winning practices, we consistently provide high-quality, custom, innovative solutions to meet the diverse marketing needs of our clients. For more information, visit www.MatchaDesign.com.