<video src="movie.ogg" controls="controls">
</video>
Attribute | Value | Description |
---|---|---|
audio | muted | Defining the default state of the the audio. Currently, only "muted" is allowed |
autoplay | autoplay | If present, then the video will start playing as soon as it is ready |
controls | controls | If present, controls will be displayed, such as a play button |
height | pixels | Sets the height of the video player |
loop | loop | If present, the video will start over again, every time it is finished |
poster | url | Specifies the URL of an image representing the video |
preload | preload | If present, the video will be loaded at page load, and ready to run. Ignored if "autoplay" is present |
src | url | The URL of the video to play |
width | pixels | Sets the width of the video player |
Support
Format | IE | Firefox | Opera | Chrome | Safari |
---|---|---|---|---|---|
Ogg | No | 3.5+ | 10.5+ | 5.0+ | No |
MPEG 4 | 9.0+ | No | No | 5.0+ | 3.0+ |
WebM | No | 4.0+ | 10.6+ | 6.0+ | No |
<audio src="song.ogg" controls="controls">
</audio>
Attribute | Value | Description |
---|---|---|
autoplay | autoplay | Specifies that the audio will start playing as soon as it is ready. |
controls | controls | Specifies that controls will be displayed, such as a play button. |
loop | loop | Specifies that the audio will start playing again (looping) when it reaches the end |
preload | preload | Specifies that the audio will be loaded at page load, and ready to run. Ignored if autoplay is present. |
src | url | Specifies the URL of the audio to play |
Support
Format | IE 9 | Firefox 3.5 | Opera 10.5 | Chrome 3.0 | Safari 3.0 |
---|---|---|---|---|---|
Ogg Vorbis | No | Yes | Yes | Yes | No |
MP3 | Yes | No | No | Yes | Yes |
Wav | No | Yes | Yes | Yes | Yes |
No comments:
Post a Comment