by SrNupsen » Thu Mar 02, 2006 10:01 am
Pirate Elf wrote:I have recently come across a beautiful flash player that plays mp3's it uses a custom version of xml called xspf. What I am looking to do with the help of a multipart and a few other addons is make a profile that will allow my users to upload music then post it and then use the xspf file to play it.
Here is an example of xspf:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.url.net/file.mp3</location>
<annotation>Artist - File Name</annotation>
</track>
</trackList>
</playlist>
Anyone have any good ideas how I could incorporate a profile's .txt into the xspf file? Any help is always appreciated.
Anything wrong about putting everything before the first <track> and the last </track> inside a template like this:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns="http://xspf.org/ns/0/">
<trackList>
<Field: Content>
</trackList>
</playlist>
and then use a style to process each track? You can set the profile output file extension to xspf if you want to.
I use this technique to build the menu "Vagbladet (10 siste saker" at one of my sites (
http://www.dusj.no)
SrNupsen
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for
custom work or troubleshooting.
http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------