Summary 105
At this point we have not only completed our audio player, but also reached the
end of the chapter on video and audio. Many of the features we programmed
manually in the video and audio player are of course also implemented by the
browser and can be activated more easily via the controls attribute. But it still
makes sense to look behind the scenes to discover the options available when
scripting video and audio.
Summary
With video and audio, two important functions that previously required plug-ins
become part of the HTML specification. It is difficult to predict which video co-
dec will eventually prevail, although in light of Google’s commitment in favor of
WebM, we can hope for a patent-free open format.
As the second part of the chapter shows, the HTMLMediaElement Interface
makes video and audio accessible for scripting. Using JavaScript allows for an
interaction that was not possible previously with the available plug-in solutions.
As for every HTML5 topic, there are many more impressive examples to be found
online. Take some time to search and discover them for yourself! By reading this
chapter you have laid the foundation for understanding these new and fascinat-
ing HTML5 features.