XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / video
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
video
HTML 5 |
<video> ... </video>
Embeds a video file in a page without requiring a special plugin. Authors can provide content for the video element that is displayed by browsers that do not support video.
Notes
HTML 5 only. When this pocket reference was written, the codec supported by the video element had not yet been decided: most likely either the open source Ogg theora format or the proprietary but much more popular and efficient H.264 format. The element video is currently supported by Firefox 3.5+, Safari 3.2+, Opera 10.0+ and now also Google Chrome.
Start/end tag
Required/required
Attributes
autobuffer(autobuffer="autobuffer"in XHTML 5)Tells the user agent (browser) that the media file is very likely to be used and should be immediately available.
autoplay(autoplay="autoplay"in XHTML 5)Plays the media file automatically.
controls(controls="controls"in XHTML 5)Instructs the user agent (browser) to show playback controls for the media file.
height="Zahl"The video player’s height in pixels.
loop(loop="loop"in XHTML 5)Specifies that the media file should replay when it ends.
poster="URL"The location of an image displayed as a placeholder until the video plays.
src="URL"The location of the media file.
width="Zahl"The video player’s width in pixels.
Examples
See also the example for the element source.
<video src="movies/nantucket.ogv" width="640" height="480" poster="bay.jpg" type="video/ogg; codecs='theora,vorbis'">
Dieser Browser unterstützt das <code>video</code>-Element leider nicht.
</video>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de