HTML and CSS Reference
In-Depth Information
Attribute
Value
Description
muted muted
This will mute the audio. Note that this does not
appear to be supported in Android Browser.
controls controls
Used to tell the browser whether to render the
default controls. If you produce your own UI for
your video player, this can be handy.
height
height in pixels Specifies the initial height of the video element.
width
width in pixels Specifies the initial width of the video element.
poster
url to poster
image
This is the path to the image used within the video
tag prior to the video playing.
The <video /> element also currently supports most popular video containers
and codecs.
Table 3-4 shows the formats and mime types that are currently supported by
Android Browser. How to encode for these formats will be covered later in this
chapter.
Table 3-4. HTML5 Video Supported Formats
Container
Extensions
Mime
Notes
MPEG-1 .mpg,
.mpeg, .mpv
video/mpeg
MP4 .mp4
video/mp4
OGG .ogv,
.ogg
application/ogg
WebM
.webm
video/webm
Supported only in
Android 4 (Ice Cream
Sandwich)
MKV .mkv
video/x-matroska —
Windows Media
Video
.wmv video/x-ms-wmv
 
 
Search WWH ::




Custom Search