Html5 audio/video playback and CSS effect style matching

Source: Internet
Author: User

Over the past few days, I have been studying the style effect display problem in the html5 environment. htm5 labels are more concise. Combined with jquery and bootstrap3, I can make better page effects that I want. Here we will introduce the js library used for audio and video playback: audio. js http://kolber.github.io/audiojs/ You can easily complete the following steps: InstallationPut audio. js, player-graphics.gif & audiojs.swf in the same folder. include the audio. js file: <script src = "/audiojs/audio. min. js "> </script> Initialise audio. js: <script> audiojs. events. ready (function () {var as = audiojs. createAll () ;}); </script> Then you can use <audio> wherever you like in your HTML: <audio src = "/mp3/juicyloud" preload = "auto"/> video playback: video-js http://www.videojs.com/ You can easily perform the following steps: <link href = "// canonical" rel = "stylesheet"> <script src = "// example.com/path/to/video.js"> </script> <script> videojs.options.flash.swf =" http://example.com/path/to/video-js.swf "</Script> <video id =" example_video_1 "class =" video-js vjs-default-skin "controls preload =" auto "width =" 640 "height =" 264" poster =" http://video-js.zencoder.com/oceans-clip.png "Data-setup = '{" example_option ": true}'> <source src =" http://video-js.zencoder.com/oceans-clip.mp4 "Type = 'video/mp4 '/> <source src =" http://video-js.zencoder.com/oceans-clip.webm "Type = 'video/webm'/> <source src =" http://video-js.zencoder.com/oceans-clip.ogv "Type = 'video/ogy'/> </video> final effect:

Related Article

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.