Buzz is a small but powerful Javascript library that allows you to easily take advantage of the new HTML5 audio element. It degrades silently on non-modern browsers.
Api example
var mySound = new buzz.sound( "/sounds/myfile", { formats: [ "ogg", "mp3", "acc" ] }); mySound.play() .fadeIn() .loop() .bind( "timeupdate", function() { var timer = buzz.toTimer( this.getTime() ); document.getElementById( "timer" ).innerHTML = timer; });
Buy me a beer!
Buying me a beer will motivate me to keep this project going and allow for further development.
Sponsors
via Ad PacksThey use Buzz...
Peugeot, the legendary major French car brand, uses Buzz in its stunning Hybrid4 website.