25.02.2013 Views

Peter Lubbers - Pro HTML 5 Programming

Pro HTML 5 Programming

Pro HTML 5 Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

86<br />

CHAPTER 3 ■ WORKING WITH <strong>HTML</strong>5 AUDIO AND VIDEO<br />

Figure 3-5. Mouseover video playback<br />

Summary<br />

In this chapter, we have explored what you can do with the two important <strong>HTML</strong>5 elements audio and<br />

video. We have shown you how they can be used to create compelling web applications. The audio and<br />

video elements add new media options to <strong>HTML</strong>5 applications that allow you to use audio and video<br />

without plugins, while at the same time providing a common, integrated, and scriptable API.<br />

First, we discussed the audio and video container files and codecs and why we ended up with the<br />

codecs supported today. We then showed you a mechanism for switching to the most appropriate type<br />

of content for the browser to display.<br />

Next, we showed you how you can use control audio and video programmatically using the APIs and<br />

finally we looked at how you can use of the <strong>HTML</strong>5 Audio and Video in your applications.<br />

In the next chapter, we'll show how you can use geolocation to tailor your application's output to<br />

the whereabouts of your users with a minimal amount of code.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!