My favorites | Sign in
Project Logo
Project hosting will be READ-ONLY Wednesday at 8am PST due to brief network maintenance.
                
Code license: MIT License

Flex xml mp3 player

Basically you can specify an xml playlist from the url, and have it play whatever is in the playlist…

The links for the examples are on the right side.

You can also specify the playlist in the url if you'd like:

http://axel.cfwebtools.com/Examples/xspfPlayer/bin/xmlPlayer.cfm?playlist%5Furl=http://killtheheart.com/playlist.xml

here are the variables you can use:

The music player can also be used to play single mp3 files instead of playlists, the parameters are:

and you could even create a custom playlist on your site (this link doesn't work it's an example) http://flexcoders.nl/someplaylist.xml

and as long as it was in the right format, it’s all good….

here is the format http://axel.cfwebtools.com/Examples/xspfPlayer/bin/data.xml

right click and view source to actually copy and paste xml...

It’s loosely based on the xspf (‘spiff’) standard, it’s an open source shareable playlist format…

Here is the documentation on it:

http://www.xspf.org/xspf-v1.html#rfc.section.4.1.1.2

here is another example of a playlist

http://www.killtheheart.com/playlist.xml

xml details

<?xml version="1.0" encoding="UTF-8"?>
<!-- http://www.xspf.org/xspf-v1.html#rfc.section.4.1.1.2 -->
<!-- the above link is all the documentation on xspf, this loosely follows the spec -->
<playlist version="0">
	<trackList>

		<track>
			<album>Unknown</album>
			<annotation></annotation>
			<artist>Unknown</artist>
			<creator>Axel Jensen</creator>
			<image></image>
			<info>http://www.killtheheart.com</info>
			<link>http://www.downloads.betterpropaganda.com/</link>
			<location>http://downloads.betterpropaganda.com/music/Imperial_Teen-Ivanka_128.mp3</location>
			<timeEnd>20000</timeEnd>
			<timeStart>15000</timeStart>
			<title>Imperial Teen Ivanka</title>
			<trackNum></trackNum>
		</track>
		
		<track>
			<album>We Don't Need to Whisper</album>
			<annotation></annotation>
			<artist>Angels and Airwaves</artist>
			<creator>Axel Jensen</creator>
			<image>http://www.killtheheart.com/Music/Angels and Airwaves/We Don't Need to Whisper/cover.jpg</image>
			<info>http://www.killtheheart.com</info>
			<link>http://www.angelsandairwaves.com/</link>
			<location>http://www.killtheheart.com/Music/Angels and Airwaves/We Don&apos;t Need to Whisper/08 - the gift.mp3</location>
			<timeEnd>15000</timeEnd>
			<timeStart>0</timeStart>
			<title>The Gift</title>
			<trackNum>8</trackNum>
		</track>
	
		<track>
			<album>We Don't Need to Whisper</album>
			<annotation></annotation>
			<artist>Angels and Airwaves</artist>
			<creator>Axel Jensen</creator>
			<image>http://www.killtheheart.com/Music/Angels and Airwaves/We Don't Need to Whisper/cover.jpg</image>
			<info>http://www.killtheheart.com</info>
			<link>http://www.angelsandairwaves.com/</link>
			<location>http://www.killtheheart.com/Music/Angels and Airwaves/We Don&apos;t Need to Whisper/09 - good day.mp3</location>
			<timeEnd>0</timeEnd>
			<timeStart>0</timeStart>
			<title>Good Day</title>
			<trackNum>9</trackNum>
		</track>

	
	</trackList>
</playlist>









Hosted by Google Code