Updates All Around!

Updates everywhere. I’ve been doing some server cleaning. First off is that the documentation for the XSPF player has been updated for the first time in months. Next comes the player creator. It has been updated a few times in a few days, but I believe it will stay this way for a while. Lastly is player updates; The request for a start_track with shuffle has been filled, and works perfectly. Also, for the more technical of us, I have included a way to collect stats about your player usage through an external php file (or any language that can read POST variables). This is a dumbed down version of the player I created for IACMusic.com. It can collect the label (title and artist) for each track, as well as the annotation. The script can be customized to include such things as a date, referrer, and ip address. I’ve included some of these options in an included script. This data can be used however one wishes (for IAC, it was written to a text file, and processed into a database later on). The final player updates were pointed out to me by the ever-watchful eye of Lucas Gonze. These are XSPF validation errors. The trackList node needs a capitol ‘L’, the playlist should be in ‘.xspf’ format, and there is no such thing as a ‘type’ node in XSPF. This has been changed to meta rel=”http://lacymorrow.com/type/” to follow validation. Finally, ‘music’ is does not follow XSPF format. This has been changed to ‘audio’ (under the meta node). See it here.

12 thoughts on “Updates All Around!

  1. With IAC, I used the PHP file to write info to a text file, which was later read and processed by them (MySQL I believe). This function is for the more keyboard-happy of us.

  2. For example, you could add these three lines to the end to write to a simple text file:
    $fp = fopen(“stats.txt”, “a”);
    $accessWrite = fwrite($fp, “\r\n”.$time.”, “.$song.”, “.$annotation);

  3. Hi! Thanks for the player, it looks great for my homepage lol. By the way, how do you set the start_track to shuffle? What value should I put? Once again, thanks for this great player:)

  4. You would set ‘&start_track=15&shuffle=true’. 15 being the track you would like to start on. Keep in mind that is using alphabetize, the track numbers may not be the same as the playlist.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>