Welcome to the 0.14 release of xspf/php released May 1st 2009 This version has several improvements including playlist caching to / from a MySql database.
Quick install: 1. Create a new web accessible directory on your server. EXAMPLE: /home/user/public_html/music 2. Unpack the archive to a local directory 3. Create xspf.dir, a list of your music directories on the server with their companion URL and an optional info element URL You can also add the following to your xspf/php installation .htaccess to prevent unauthorized access. Manual xspf.dir creation:
4.Open original.xspf.settings.php in your favorite word processor. Edit red items below to fit your needs then save it as xspf.settings.php
5. If this is a new installation copy or upload the contents of the entire archive to your web accessible xspf installation directory. |
|
Player.phpIncluded with this package is a short embed script named "player.php". When executed it will generate simple embed code that can be copied and pasted to a web page, included as an iframe or embedded directly using an object block. I've created a sample page you can use to see the basic script in operation here. This is a whimsical feature that may or may not be kept up to date, depending on feedback. So if you have an opinion, send feedback. The script reads player.ini to generate the embed code. Player.ini contains nearly all of the settings available for the standard freeware JW player, included in the archive. See PLAYER.PHP SAMPLE Installation is not necessary provided player.php is in the xspf directory. $cp player.php nodoubt.php The script will look for an ini file with the same name as the script. Now you can reference nodoubt.php from any web page like below. <object id="nodoubt.php" type="text/html" data="http://yourdomain/yourxspf/nodoubt.php" width="610" height="300"> Now you can edit nodoubt.ini to change the settings or easily customize the player as it appears on a remote web page. |
|
Known issues:Filename replaces tags in playlist :
|
|
Adding custom album or track images:The default "no image" image is rather droll. You can upload an album image named "-noimage.jpg" to each music directory and it will appear on all tracks. Default image for entire playist is -noimage.jpg in the installation directory. To add a custom image for individual tracks, upload the custom image naming it exactly the same as the .mp3 file for that track with a .jpg extension. Regerate the player and that image will appear with that track. Many players are now able to extract the album art from the file so this project probably won't ever include the overhead of extracting and caching images. |
|
Additional Links & Info:XSPF/PHP is FREE software. Currently it is not covered by a GPL license. It is gifted to the people of the world for any use and may be modified and distributed in any way whatsoever for any purpose. This means it can be copied and used indiscriminately for commercial ventures. Just don't mention me if it's unscrupulous. The id3 php class is distributed under GPL. See "id3/license.txt for licensing information for the id3 php class. Links: |