Playlists simples
La construction d'une playlist se fait simplement par l'ajout d'éléments <sound>
<?xml version="1.0" encoding="iso-8859-1"?>
<afAMPxml>
<sound>
<url>http://gosset.free.fr/meupeutrois/John_Vanderslice-Me_And_My_424.mp3
</url>
<title>Me and My 424
</title>
<artist>John Vanderslice
</artist>
<bitrate>128
</bitrate>
<website>http://www.johnvanderslice.com/
</website>
<downloadurl>http://gosset.free.fr/meupeutrois/John_Vanderslice-Me_And_My_424.mp3
</downloadurl>
</sound>
<sound>
<url>http://gosset.free.fr/meupeutrois/John_Vanderslice-The_Mansion.mp3
</url>
<title>The Mansion
</title>
<bitrate>128
</bitrate>
<artist>John Vanderslice
</artist>
<website>http://www.johnvanderslice.com/
</website>
<downloadurl>http://gosset.free.fr/meupeutrois/John_Vanderslice-The_Mansion.mp3
</downloadurl>
</sound>
<sound>
<url>http://gosset.free.fr/meupeutrois/John_Vanderslice-I_Miss_The_War.mp3
</url>
<title>I Miss The War
</title>
<artist>John Vanderslice
</artist>
<bitrate>128
</bitrate>
<website>http://www.johnvanderslice.com/
</website>
<downloadurl>http://gosset.free.fr/meupeutrois/John_Vanderslice-The_Mansion.mp3
</downloadurl>
</sound>
</afAMPxml>
NB: si le lecteur n'est pas en mode "lecture aléatoire", les titres seront joué dans l'ordre des éléments <sound>
NB: rien n'empêche, au sein d'une même playlist, d'aller lire un fichier .mp3 sur un serveur (ici Free) puis un autre sur un autre site (par exemple framasoft ou libreweb).
C'est déjà pas mal, mais la principale qualité de l'informaticien étant d'être fainéant, on peut factoriser en utilisant des valeurs par défaut
<< Creation de playlists | HomePage | Playlists complexes >>