Cross-Browser HTML5 Audio With Audio5js
HTML5 audio is awesome, so easy to implement and works fast. The only thing that can stop you from using it is the lack of support for older browsers.
It provides support for multiple codecs and fallback to a Flash-powered MP3 player when needed.
The library auto-detects the browser, knows its capabilities and loads the right player with the right codec.
An API exists for controlling the player and has the functions for “load, play, playPause, pause, volume and seek”.
Also, there are methods for getting the details (playing, duration, position, load-percent, seekable or not) of the item being played