HTML5 Guidelines for Web Developers

(coco) #1

84 Chapter 4—Video and Audio


<source src='videos/mvi_2170.mp4' type='video/mp4'>
<source src='videos/mvi_2170.webm' type='video/webm'>
<source src='videos/mvi_2170.ogv' type='video/ogg'>
Sorry, your browser is unable to play this video.
</video>
</body>
</html>

The JavaScript library mwEmbed is downloaded directly from the project web-
site (http://html5.kaltura.org/js) and then sorts out how the video can be played.
In any case, a small control bar appears at the bottom edge of the video. Fig-
ure 4.7 shows the reaction of Internet Explorer 8, which does not yet know the
HTML5 video element: To play the Ogg video, it loads the Java applet Cortado.

Figure 4.7 Internet Explorer 8 with Kaltura’s fallback library mwEmbed

If you are not happy with Java applets as replacements for native video in the
browser, you can use the html5media library instead.
Free download pdf