HTML and CSS Reference
In-Depth Information
mediagroup =" text
text "
Links multiple media elements together by assigning them the same mediagroup value.
muted (or muted="muted" in XHTML)
Disables (mutes) the audio output, even if it overrides user preferences.
poster=" URL
URL "
Specifies the location of an image file that displays as a placeholder before the video be-
gins to play.
preload="none|metadata|auto"
Hints to the browser whether the media file should begin to load automatically based on
anticipated best user experience. none prevents the preload; metadata does not download
the media file, but does fetch the resource metadata; and auto leaves the decision to pre-
load to the user agent.
src=" URL
URL "
Specifies the location of the media file.
width=" number
number "
Specifies the width of the video player in pixels.
Examples
<video src= "movies/nantucket.ogv" width= "640" height= "480"
poster= "bay.jpg" type= "video/ogg; codecs='theora,
vorbis'" >
This browser does not support the <code>video</code>
element. </video>
<video id=" yourmovieid " width= " 640 " height= " 360 "
poster= " yourmovie_still.jpg " controls preload= "auto" >
<source src=" yourmovie-baseline.mp4 " type='video/mp4;
codecs="avc1.42E01E, mp4a.40.2"'>
Search WWH ::




Custom Search