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 that they support. I will spend most of the chapter discussing and demonstrating the audio element but just keep this in the back of your 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. ...