O'Reilly logo

Learn HTML5 and JavaScript for iOS by Scott Preston

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

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

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