發表文章

目前顯示的是 3月 24, 2013的文章

audio.js

Javascript Audio Player <audio.js> audio.js 00:00 / 04:07 audio.js is a drop-in javascript library that allows HTML5’s <audio> tag to be used anywhere. It uses native <audio> where available and an invisible flash player to emulate <audio> for other browsers. It provides a consistent html player UI to all browsers which can be styled used standard css. Download  audio.js Installation Put  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/juicy.mp3" preload="auto" /> Examples A series of API tests & examples for using and extending audio.js ...