JPlayer Playlister 0.5
[JPlayer Audio Playlist Generator]
Notice
[2012.01.13]
If you get a 500 error, download the source again. I've updated to no longer make use of a PHP 5.3 feature which offered little benefit and, potentially, tons of headache.
v0.6 will be here soon...and support video!
Change Log
v0.5
- enabled config variable and 'argument' for overriding default autoplay. this was long overdue
- revised and improved the sorting options
- fixed clickable name filter option to preserve sorting
- added argument for disabling non essential information
- verified that JPlayer v2.1 works (drop in solution for Playlister 0.4 or 0.5)
v0.4
- added filter by folder option which lists (sub)folders with checkboxes for advanced filtering
- updated to work with JPlayer 2.0
- numerous bug fixes
v0.3
- added recursion to allow target folder and (infinite?) subfolders to be searched for music
- added the ability to sort by mtime (file modified time), file name, or randomize playlist
v0.2
- added the ability to load songs in the target directory and one level of subdirectories
Source / Download
Implementations
Bio
This page demonstrates the JPlayer Audio Playlist Generator, by Cornbread Web Design (A division of
Chapman IT).
The original use of this code can be seen
here. Backstory can be found there, as well.
_Props_
I implemented this player, and coded the PHP Playlist Generator...but couldn't have done it without lots of help:
JPlayer » Awesome HTML5 (flash fallback) Audio/Video player with playlist capability which is the foundation upon which this project was built; and the bricks comprising the walls, for that matter.
getID3 » PHP Class allowing the easy access to ID3 information for various audio files.
_Using the Code_
A basic grasp of PHP will help, and perhaps be necessary, to use this code. You may be able to scrape by if you don't know Javascript (like me).
Basically, though, assuming you are running a web server with PHP installed and configured, you will need to
extract the contents of the JPlayer Playlist Generator (JPlayer Playlister) by CBWD (download from links above)
and drop some mp3 files or folders (others audio types weren't tested, but should work...may require a little code modification) into the
'songs' folder. Load up the page and you should be all set. As of v0.3, the JPlayer Playlister plays songs in target directory
and all subfolders, offering links to play songs from all specific subfolders.
There are some configuration options at the top of 'index.php' which you can change to your liking. Additionally, you can get fancy and
click 'shuffle' to randomize the playlist. Let me know if you have any trouble. Email me(thenickchapmanATgmail.com) or post a comment at
my blogspot featurette:
JPlayer Playlister.
-
nc