ajax/php dynamic playlist for jPlayer example with downloadable source :)

703 views
Skip to first unread message

Nick13

unread,
Oct 14, 2010, 10:50:12 PM10/14/10
to jPlayer: the CSS styleable jQuery audio player plugin
Hola Group!

First, thanks to everyone who helped me get this project this far.
Mark was a huge help in getting the ajax straightened out.

For starters, you can checkout the demo here:
http://inmomentmedia.dyndns.org/ajaxplayer/ajaxplayer.html And if any
of this doesn't click for you, I made a semi-lengthy blog post about
working with AJAX and PHP to create a playlist. Explaining things
like, how to setup your directories and what permissions you'll need,
and how the playlist is created/edited.
http://www.inmomentmedia.com/blog/?p=239

Some of the features I've added to the original jplayer are:

-> The skin can be changed on the fly (no page refresh needed)
-> Loads Random songs from the database via php/ajax
-> Infinite playlist function
-> reset playlist button.

The source is: http://inmomentmedia.dyndns.org/ajaxplayer/ajaxplayer.zip

There is still one major problem. When the playlist updates, the song
that is currently playing will no longer be highlighted. It sill
plays, and the audio never misses a beat, but the css can't keep up.
Ive been trying to figure out a javascript that re applys it, but
nothing yet.

I hope you guys get some use out of this!
Reply all
Reply to author
Forward
0 new messages