C H A P T E R  10

Audio and Video

This is perhaps the simplest of all the chapters so far; the information here will enable you to program your HTML5 web application to render audio and video without Adobe Flash or other custom code, by using the <audio> and <video> tags and their elements.

The examples in this section are short and to the point, but the features provided by these new tags will allow you to combine a little bit of GPS to create an interactive tour for the Grandview Avenue sample app.

First I'll provide you with a short overview of these new tags.

Overview of the Audio and Video Tags

Let's take a look at the elements and attributes of the new <audio>, <video>, <source> and <embed> elements.

<audio>

The <audio> tag supports .wav, ...

Get Learn HTML5 and JavaScript for iOS 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.