FMP256 Instructions : XSPF playlist format

The playhead dynamically plays MP3 format files from an HTTP server or servers. It collects a list of MP3 files by reading a playlist, which can be in either XSPF or Extended-M3U format.

An XSPF playlist is a simple text file you can edit in any text editor. The format of XSPF files is very important, so if you make mistakes the playhead will not run properly.

We only read some of the XSPF information and ignore all the rest, so you can give the playhead a full file or a simplified version as we've shown below:

<?xml version="1.0" encoding="iso-8859-1" ?> <playlist version="1" xmlns = "http://xspf.org/ns/0/"> <trackList> <track> <title>Mohican Monkeys play The Bluuez : (C)2004 Garth Brooks</title> <location>track1.mp3</location> <image>/music/images/garth04.jpg</image> </track> <track> <title>Strange Things Have Happened (since you ate that hamster) :: Coolio</title> <location>http://coolio.mytracks.com/music/track66.mp3</location> <info>http://www.coolio.com/</info> </track> <track> <title>Broken Horizons : Gothpixie : Effervescence : Click here to visit our website</title> <location>http://www.gothpixie.com/media/effervescence_6.mp3</location> <info>http://www.gothpixie.com/</info> </track> </trackList> </playlist>

The first two lines, and the last line, define the playlist and should never be changed. The remainder of the code defines a trackList - there must be only one trackList section per file. Note the capital L in the tag. XSPF is strange that way...

Inside the trackList are one or more <track> sections, from one to thousands! Inside each <track> section are two or more definitions:-

<title> tags can use any basic text and can be up to 255 characters long. You cannot use HTML code or international characters. If the title text is over a certain number of characters then the playhead will start scrolling the display - it depends on which design you're using as to when this happens. You HAVE to include a title, but if you really want to you can make it blank.. by using .

<location> tags must point to an MP3 file on a website. You can use an absolute URL like we did for track 2 above, or relative URLs like on track 1, where the player will look for the MP3 file in the same place it lives. The player can ONLY support native MP3 files encoded with constant bit-rate and standard patterns - it cannot cope with wrapper-encoded files or VBR, and Flash has problems with interpolated sample rates. If the file cannot be found or understood, the playhead skips the track.

<info> tags are optional, and give a link to the artist website or a page about the track. If the playhead finds an <info> tag, the LCD title screen becomes clickable and will open the URL in a new browser window. We suggest in this case you add a message to the track title to show it is clickable - like we've done in the example above.

<image> tags are only used on some of our designs, and if present must link to a JPEG format picture file to be shown as the track plays. Dimensions must match the space on the player design - details are provided with those skins that support images.


All content ©2005-2006 Draftlight Networks all rights reserved