jQuery plugin to embed an MP3 player (multi-track).
- jQuery
- jQuery UI Draggable (which depends on jQuery UI’s Core, Widget and Mouse)
- SoundManager2
First thing, you must have a node like this in your markup:
<ul id="myplaylist"> <li><a href="ave_maria.mp3">Ave Maria</a></li> <li><a href="adagio_in_c_minor.mp3">Adagio in C minor</a></li> <li><a href="valse.mp3">Valse</a></li> </ul>
Then you need to call julienMP3Player on a jQuery object like this:
$(function(){ $('#myplaylist').julienMP3Player({ soundManagerSwfURL: './swf/' // where the swf folder is located }); });
Some of the features i still have to implement are:
- an API to play/pause/stop/next/previous the songs programmatically