HTML and CSS Reference
In-Depth Information
How Example 2.24 will be displayed, or if it will be displayed, depends on
your browser. Figure 2.24 shows how the video is displayed using Google's
Chrome browser.
Figure 2.24: google Chrome's built-in video player with controls enabled
Alternatively, the source of the video or audio data can be provided in a
source element that can have a type attribute to identify speciic media formats
and encodings. If used, the source element must be a direct child of the video
element and come before any fallback content. For example:
<video autoplay controls>
<source src="flick.mp4"
type="video/mp4; codecs='avc1.42E01E, mp4a.40.2'"/>
<!-- fall-back content -->
A discussion of the various types and encodings of audio and video data is
beyond the scope of this topic. he W3C's drat HTML5 speciication has a list
of the supported media type values and corresponding source elements. 4 It is
reproduced here:
Search WWH ::

Custom Search