HTML5 video-LoveSuk
|
The video element supports three video formats. |
IE |
Firefox |
Opera |
Chrome |
Safari |
| With Theora video encoding and Vorbis Audio EncodingOggFile |
No |
3.5 + |
10.5 + |
5.0 + |
No |
| With H.264 video encoding and AAC audio encodingMPEG 4File |
9.0 + |
No |
No |
5.0 + |
3.0 + |
| With VP8 video encoding and Vorbis Audio EncodingWebMFile |
No |
4.0 + |
10.6 + |
6.0 + |
No |
1. Set an ogg File
Your browser does not support video tags.
Run the following command:
If the browser does not support the ogg format, "your browser does not support video tags ."
2. Set multiple formats
Your browser does not support video tags.
Run the following command:
For example, set a default image for a video. You can also add other attributes.
The tag attributes are as follows:
Controls/controls = "controls" display play button
Autoplay/autoplay = "autoplay" play now
Loop/loop = "loop" loop playback
Muted/muted = "muted" mute
Preload/preload = "preload" load video d
Poster = "path" show default image
3. Custom pause and size (Video + DOM)
Play/pause
Change size
Your browser does not support video tags.
Write javascript below html