Chapter 3. Working with HTML5 Audio and Video
In this chapter, we'll explore what you can do with two important HTML5 elements—audio and video—and we'll show you how they can be used to create compelling applications. The audio and video elements add new media options to HTML5 applications that allow you to use audio and video without plugins while providing a common, integrated, and scriptable API.
First, we'll discuss audio and video container files and codecs, and why we ended up with the codecs supported today. We'll go on to describe lack of common codec support—the most important drawback for using the media elements—and we'll discuss how we hope that this won't be such a big issue in the future. We'll also show you a mechanism for switching ...
Get Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.