Chapter 7Embedding Audio and Video

Audio and video are integral parts of the modern Internet. Podcasts, audio previews, and even how-to videos are everywhere, and until a few years ago, they’ve only been truly usable via browser plug-ins like Flash. HTML5 introduces new methods to embed audio and video files into a page. In this chapter we’ll explore a few methods we can use to not only embed audio and video content, but also to ensure that it is available to people using older browsers and to people with disabilities.

We’ll discuss the following HTML5 features:

<audio> [<audio src="drums.mp3"></audio>]

Plays audio natively in the browser. [C4, F3.6, S3.2, IE9, O10.1, iOS3, A2]

<video> [<video src="tutorial.m4v"></video>]

Plays video natively ...

Get HTML5 and CSS3, 2nd Edition 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.