HTML5 new Label-video

Source: Internet
Author: User

HTML5 's video new tag is very simple to use, the function is also really powerful, a few lines of code can be implemented to achieve the function. In particular, when Apple refused to support Flash on iOS devices, HTML5 's public support has been greatly improved.

<! DOCTYPE html>


Tested, no problem (Firefox 3.5+, Chrome 4+, Safari 4, opera 10.5+, Internet Explorer +, IOS 3.2+, opera Mobile 11+, Android 2.3+)


Most modern browsers now support the MP4 format, which is mentioned in the responsive web design book Some browsers support a set of video and audio file formats, while others support other formats. For example , Safari only allows the use of MP4/H.264/AAC media files in <video> and <audio>, while Firefox and Opera only support Ogg and WEBM ". At least I was in the demo when I found that Firefox and opera support MP4, may be a newer version of the reason, but still the Ogg format is added to the

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/87/C9/wKioL1fh7qqC3WxuAAS30PoQ5-Q484.png "title=" Qq20160921102017.png "alt=" Wkiol1fh7qqc3wxuaas30poq5-q484.png "/>

As we know, IE8 and the following browsers do not support HTML5 video and audio, in order to be compatible with old IE, we can provide an elegant alternative, add a flash

<! Doctype html>


In IE8 and lower browsers, you can play the video just as well, but the effect isn't that good.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/87/CD/wKiom1fh8WeDNnByAAMS5ZKzDpY447.png "title=" Qq20160921103219.png "alt=" Wkiom1fh8wednnbyaams5zkzdpy447.png "/>

There is also a video format conversion website, powerful, no need to download the app, the interface is very clean, refreshing http://www.apowersoft.com/free-online-video-converter


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/87/C9/wKioL1fh8fvgZCOiAAJZ5-qgT0I972.png "title=" Qq20160921103508.png "alt=" Wkiol1fh8fvgzcoiaajz5-qgt0i972.png "/>



This article is from the "Dapengtalk" blog, make sure to keep this source http://dapengtalk.blog.51cto.com/11549574/1854830

HTML5 new Label-video

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.