Chapter 5. Native Video
HTML5’s new embedded content elements offer designers and developers more options for including media in our sites.
Similar in nature to
video element shares many of the same
attributes, has a similar syntax, and can be styled and manipulated with
has some implementation challenges.
5.1. Adding HTML5 Video
You want to play native video on your web page.
with the addition of a
src attribute that references the location of
your video file:
To display default video player controls (see Figure 5-1), add the
preload attribute allows
you to suggest to the browser
whether and how it should download the video:
<video src="video.ogv" controls
You can skip the attribute and let the browser decide, or give browsers a “hint” with specific values (refer back to Recipe 4.1, for details):
You should also make it standard practice to include fallback