The WebPlayer supports two playlist types - the proprietary WebPlayer playlist format (WPL) and the XSPF format. After having defined your playlist you can tell the WebPlayer to play the playlist by changing the variable src (within the flashvars) to the location of your playlist.
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns = "http://xspf.org/ns/0/">
<title>XSPF Test Playlist (songs from PGS3000)</title>
<trackList>
<track>
<location>http://www.example.com/songs/Adagio_for_strings.mp3</location>
</track>
<track>
<location>http://www.example.com/songs/Carnaval.mp3</location>
</track>
<track>
<location>http://www.example.com/songs/Carnaval_2007.mp3</location>
</track>
<track>
<location>http://www.example.com/songs/Hardbeatz.mp3</location>
</track>
<track>
<location>http://www.example.com/songs/Identity.mp3</location>
</track>
</trackList>
</playlist>
The following playlist contains the same songs as the one above:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE playlist
SYSTEM "http://www.webminster.org/ext/xml/webplayer/playlist.dtd">
<playlist name="XSPF Test Playlist (songs from PGS3000)"
basedir="http://www.example.com/songs/"
xmlns="http://www.webminster.org/ext/xml/webplayer">
<file src="Adagio_for_strings.mp3" />
<file src="Carnaval.mp3" />
<file src="Carnaval_2007.mp3" />
<file src="Hardbeatz.mp3" />
<file src="Identity.mp3" />
</playlist>