CHAPTER 8

image

Audio and Video

In this chapter, I will demonstrate the new audio and video elements introduced with HTML5. The two elements are identical in terms of their attributes and the methods and events they support. I will spend most of the chapter discussing and demonstrating the audio element, but just keep in mind that everything I’m showing you applies to video as well. There are some exercises at the end of the chapter that will apply these same techniques to the video element so you can see this for yourself.

I will demonstrate how to add audio and video elements using the native controls provided by the browser. This approach makes ...

Get Pro HTML5 with Visual Studio 2015 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.