Updates All Around!

Posted on October 26, 2006
Categories: Flash, XSPF.

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.

del.icio.us:Updates All Around!digg:Updates All Around!spurl:Updates All Around!wists:Updates All Around!simpy:Updates All Around!newsvine:Updates All Around!blinklist:Updates All Around!furl:Updates All Around!reddit:Updates All Around!fark:Updates All Around!blogmarks:Updates All Around!Y!:Updates All Around!smarking:Updates All Around!magnolia:Updates All Around!segnalo:Updates All Around!

12 comments.

Comment on October 27th, 2006.

How do we collect the info from the PHP file?

Comment on October 28th, 2006.

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.

Comment on October 28th, 2006.

Okey Dokey. So, how do I do that?

Comment on October 28th, 2006.

You’d have to know a good deal about php, if you’re trying to do what I did above, try reading up on ‘fopen’ and ‘fwrite’ commands.

Comment on October 28th, 2006.

Sure, Ok.

Comment on October 28th, 2006.

Could You tell me what to put into the PHP file that will write to a text file?

Comment on October 28th, 2006.

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);
fclose($fp);

uzi
Comment on October 30th, 2006.

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:)

Comment on October 30th, 2006.

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.

Comment on October 30th, 2006.

Can i make it so users don’t have to click to start?

Comment on October 30th, 2006.

Ummm, autoplay? Just set ‘autoplay=1′ or ‘autoplay=true’.

Comment on November 1st, 2006.

yes, i tried those but they dont work on the slim player.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>