O'Reilly logo

Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development by Frank Salim, Brian Albers, Peter Lubbers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required