a jQuery plugin to embed an MP3 player (powered by SoundManager2)
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.textile

julienMP3Player

jQuery plugin to embed an MP3 player (multi-track).

Dependencies

  1. jQuery
  2. jQuery UI Draggable (which depends on jQuery UI’s Core, Widget and Mouse)
  3. SoundManager2

Demo

See a Demo here

Usage

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
  });
});

ToDo

Some of the features i still have to implement are:

  1. an API to play/pause/stop/next/previous the songs programmatically