A new skin has been posted for the Xspf Jukebox, resembling the Original Xspf Player. Also, the documentations for both Gallery and the Jukebox have been updated.
A small Jukebox update to accompany my move to a new server, with a couple of bug fixes, and a couple of new features as well. The shuffle function now uses a randomized array, instead of a totally random number, which means that, while your music will come randomly, the order stays the same as you scroll through, much like in iTunes.
The fancier part of the update is the inclusion of almost full keyboard control over the player. The Left and Right arrow keys change tracks forward and backward, and when used in combination with the Shift key seeks through a track. The Up and Down arrow keys control the volume, the Spacebar Plays/Pauses, and the Control key (Command on a Mac) switches through combinations of Repeat and Shuffle. (the flash movie needs focus to enable keyboard control, this can be done through external scripts, or by the user clicking on the movie).
This post marks my first useful program for the Windows platform (besides Blackjack of course). The Xspf Jukebox Playlist Creator, as the name states, is used to create and edit Xspf and Xml playlist files for use with the Xspf Jukebox. Files are automatically parsed and labeled using their id3 tag info, both version 1 and 2 are supported. Images are also added automatically to the best fitting song, if the image name matches a songs Creator, Title, or Filename. The Creator supports both importing and exporting of playlist files. Feel free to leave any comments, suggestions, or criticisms. In the works is a Cocoa version for Mac OSX, and a Skin Creator to allow anyone to create visually appealing skins for the player.Updates for both the Xspf Jukebox and Gallery are coming soon.This project is no longer supported.
New updates for the Xspf Jukebox. I have fixed some minor bugs with skin processing, as well as adding a new option for aligning the track display text using the tag “align” inside the skin.xml file (options, of course, are “left”, “right”, and default is “center”).
Two new variables, one more exciting than the other. The first is the “midChar” variable, which gives you the option to change the character separating creator and title in the track label. The second controls the new Crossfade function, much like iTunes. Use the variable “crossFade”, set to either a boolean value (true or false), which will default to six seconds, or fill in a number (in seconds) 1 through 12.
Finally, a full writeup on using the Xspf Jukebox has been completed, and should help solve many problems that people have been having. Next to come is a “skin.xml” writeup, on how to create skins, and applications to automate embedding. On another note, a new version of the Jukebox has been released, with minor bug fixes and a couple of changes: the player will no longer connect to Amazon to retrieve images unless the “findImage” variable is set to true. Id3 tags will be used if no creator, title, or annotation is present. The “skin_url” is no longer the xml file, but the folder containing your skin. Single tracks now use the two parameters “track_url” and “track_title” in the place of “song_url” and “song_title”. The download should be available in the next few days with the skins, or if you can’t wait, it is already in the source download.
The Xspf Jukebox has been updated with a few new functions, including an autoresume feature based on Thomas Boutell‘s additions on my old player. The function works worse than would be appreciated, but works nonetheless. You can activate it by using the variable ‘autoresume’. A second addition is the ability to choose a highlight color for the currently playing song. Use the tag ‘selectedColor’ inside the skin.
This update fixes a large bug for any skin that includes an image display. If you have been hassling with this before you have noticed that images resize to their original size no matter what width and height you specify.
At this time the newly created XSPF Playlister has been released to assist in dynamically creating Xspf playlists to be used with the Jukebox. Just upload the playlist.php file to your server, fill in some settings, and link your .swf file to it to dynamically create playlist files. Id3 tags are supported for by uploading an included folder, or you can save loading time and bandwidth by organizing your tracks into sub-folders according to the artist, then label your .mp3 file with the track name. Images are also supported, rename an individual image the exact same as the correspinding track name, and place it inside the same folder.
On top of that is release 5.1 of the Xspf Jukebox, which no longer uses the mochibot code, and contains three new variables; ‘trackNumber’ specifies whether or not the playlist should be numbered, ‘activeDownload’ enables/disables downloading of mp3 files, and ‘useId3′, while being available previously for the slim player, is now available for any skin, although the new Playlister now grabs id3 tags (used only on a skin without a playlist, and with a regular playlist.xspf file).
Lastly, I have put together an automatic php embed script for the player, just edit the settings inside and call it from a php page using “require_once(“embed.php”);”. This takes much of the hassle out of embedding the player, although it only helps when loading the jukebox from a php page. For .html users, I am working on a similar helper script.
The download for the Xspf Jukebox has been posted. I have worked hard to create a dynamic php download session, so that instead of downloading every file, a .tar.gz package is created on-the-fly, containing only the requested skin file and the necessary swf file. I also created a php display to automatically find and display all skins on the site. As always, you can find a link to all of the source files, as well as an example on how to create your own skins. In the works is a skin upload page, for user-submitted skins, and a skin creator, to help in creating them. For right now, if you would like your skin displayed and available for download, email me the skin.xml and images folder, containing all used images. Remember to use relative urls when creating skins, (ex: image=”images/ipodblack.png”). XSPF Jukebox
Thats right, the ‘XSPF Web Music Player’ is no more, my jukebox has been completely rewritten, losing the last snippits of code from Fabricio Zuardi’s original. The Jukebox is fully skinnable, every function previously available has been recoded to support skinning and resizing. The first skin, iPod Black, is a partial demo of what is possible. It supports both audio and video, and works the same way as the normal player. There are 3 files associated with the player, the actual swf file, which while having around 400 extra lines of code, has been cleaned up so that it is the same size as the Xspf, a measly 16kb. Next is the skin.xml file, which contains the instructions for creating the player look, and lastly is the background image. There are two versions, a Flash 7 version for higher browser support, or a Flash 8 version for PNG and alpha channel support. As of now there is no download, but in the next few days I will be remaking my website to support the posting, previewing, and downloading of skins, as well as releasing a few more of my own skins. As for player updates, I will be adding an image loader for greater image options (resize, rotate, color change). The one drawback I can find is in the font display, the user must have your specified font on their computer to view the player correctly, otherwise they will see the default system font (usually Times New Roman). There has only been one function addition, and that is the ability for the alphabetize function to disregard a ‘The’ at the beggining of an artist title, the same way iTunes does. For example, ‘The Beatles’ would come alphabetically before ‘Cake’. To turn this off, and alphabetize normally, pass the variable ‘forceAlphabetize=1′.
View it Here.