» » Cross-browser compatible HTML5 video and audio player

 

Cross-browser compatible HTML5 video and audio player

Author: bamboo06 on 29-10-2014, 01:48, views: 6909

7
The HTML5 video and audio tags are used to join the video and audio tags in the page, with the support html5 browsers do not need to be pre-loaded Adobe Flash browser plug-in will be able to quickly and easily play video and audio files. And html5media.js can make video and audio tags take effect on the browser does not support html5.

Use html5media.js can be viewed on all browsers html5 video and audio files, which make up the lower versions of IE browser does not support the [video] and [audio] tag, you only need to load html5media.js use the [video] and [audio] tag will be able to cross-browser play video and audio.
How to use?
The video and audio html5 want labels can work on all browsers, you must add the following line of code in the head inside page:
<script src="//api.html5media.info/1.1.8/html5media.min.js"></script> 

Then you can use the following code to a video:
<video src="video.mp4" width="320" height="200" controls preload></video>

You can also use the following code to add an audio:
<audio src="audio.mp3" controls preload></audio>

About the HTML5 video tag usage you can refer to: HTML5 video tag video.
About the HTML5 audio tag usage you can refer to: Use the HTML5 Audio tag to create Audio Player in web.

Category: Javascript / HTML5

Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.
<
  • 0 Comments
  • 0 Articles
26 July 2017 18:15

JOE

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
18K red swiss replica watches gold case inlaid with 66 diamonds, white mother fake rolex
of pearl dial inlaid 12 diamonds, black crocodile leather strap, red gold button Color bright magnificent blessing: Park Tao Fenuo installed automatic uk replica watches

<
  • 0 Comments
  • 0 Articles
4 August 2017 01:22

cshang

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Oakley is referring to its real time coaching as
christian louboutin outlet uk helping athletes, so it's not clear how amateur it expects its cheap oakley sunglasses customer base to be. Luiz Dias is the manager of the wearable technology division at Oakley and revealed how the experience will differ for replica miu miu handbags users in different parts of the world. "When we are talking Longchamp Outlet about processing data in real time and delivering it when people need it most

<
  • 0 Comments
  • 0 Articles
11 September 2017 10:09

ali

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
In this article understand the most important thing, the item will give you a keyword rich link a great useful website page: Leg Workouts

<
  • 0 Comments
  • 0 Articles
12 September 2017 08:08

ali

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
wow this saintly however ,I love your enter plus nice pics might be part personss negative love being defrent mind total poeple , Signs he loves you

I propose merely very good along with reputable data, consequently visualize it: Questions to ask boyfriend

<
  • 0 Comments
  • 0 Articles
18 January 2018 18:16

gale

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I’m truly enjoying the design and layout of your site. It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire zombie years out a developer to create your theme? Great work!

zombieyears

Information
Comment on the news site is possible only within (days) days from the date of publication.