Cross-browser compatible HTML5 video audio player

Source: Internet
Author: User

HTML5 's video and audio tags are used to add videos and audios to your Web pages, and you can quickly and easily play video and audio files without pre-loading the Adobe Flash browser plugin in a HTML5-enabled browser. Html5media.js can make the video and audio tags effective on browsers that do not support HTML5.

With Html5media.js you can watch HTML5 video and audio files on all browsers, it makes up for the low version IE browser does not support <video> and <audio> tags, only need to load html5media.js use < Video> and <audio> tags can play video and audio across browsers.

How to use?

To get HTML5 's video and audio tags to work on all browsers, you must include the following line of code inside the head of the page:

 <script src="//api.html5media.info/1.1.8/html5media.min.js"></script> 

Then you can use the following code to add a video:

 <video src="video.mp4" width="320" height="200" controls preload></video> 

You can also add a piece of audio using the following code:

 <audio src="audio.mp3" controls preload></audio> 

Cross-browser compatible HTML5 video audio player

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.