jMP3 (javaScript MP3 player) is an easy way make any MP3 playable directly on most any web site (to those with Flash & javaScript enabled),
using the sleek Flash Single MP3 Player & the fantabulous jQuery.
The Del.icio.us Playtagger is OK for basic purposes, but is not very configurable, can often incur startup delays, and is just not very attractive.
Instructions
1. First, download the lightweight (3k) Flash Single MP3 Player
(Feb 2007: looks like Jeroen has updated his player and removed the old version…
grab a local copy of the original Single MP3 Player compatible with jMP3 here)
2. Then, grab the jMP3 plugin (you do have jQuery already as well, yes?)
3. Set the path to singlemp3player.swf in jMP3
4. Include jQuery & the jMP3 plugin scripts in the
<script type="text/javascript" src="/js/jquery/jquery.js"></script>
<script type="text/javascript" src="/js/jquery/jmp3/jquery.jmp3.js"></script>
5. Initialize MP3 player on individual IDs (for customization), or generic classes (for lists of files)
<script type="text/javascript">
$(document).ready(function(){
// default options
$(".mp3").jmp3();
// custom options
$("#mysong").jmp3({
backcolor: "000000",
forecolor: "00ff00",
width: 200,
showdownload: "true"
});
});
</script>
6. Rock out!
Demo: http://www.sean-o.com/jquery/jmp3/
Download: http://www.sean-o.com/files/singlemp3player.zip
Source: http://www.sean-o.com/jquery/jmp3/

Related Listings:
No comments yet.
RSS feed for comments on this post. TrackBack URL