HTML5 comes with a standard for playing audio and video on the Web. This chapter shows you how to play audio and video on your web site. In addition, the last section of this chapter explains how you can embed a YouTube video in an HTML document.
Before HTML5, there were Flash, QuickTime and RealPlayer for playing videos in the browser. All required some browser plug-in be installed and there was no standard. Of all the technologies, Flash appeared to be the de facto standard for web video and animation. Even today, there are still tons of web sites that use Flash. Time has changed. Flash is now a dying technology. For example, in January 2015 YouTube, the largest video sharing site dumped Flash in favor ...