HTML5 video-LoveSuk

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.