-
Notifications
You must be signed in to change notification settings - Fork 384
Home
Dave Hall edited this page Apr 13, 2014
·
10 revisions
All it takes is a single line of code to make HTML5 video and audio tags work in all major browsers.
To make HTML5 video and audio tags work in all major browsers, simply add the
following line of code somewhere in the <head>
of your document.
<script src="http://api.html5media.info/1.1.8/html5media.min.js"></script>
That's it! There is no second step!
You can embed video into your page using the following code.
<video src="video.mp4" width="320" height="200" controls preload></video>
For more information and troubleshooting, please visit the video wiki page.
You can embed audio into your page using the following code.
<audio src="audio.mp3" controls preload></audio>
For more information and troubleshooting, please visit the audio wiki page.