Introduction

La meilleure façon d'insérer Soplaya dans une page consiste à utiliser la librairie javascript SWFObject. Donc allez y, téléchargez la et uploadez "swfobject.js" sur votre site. Si vous ne voulez pas l'utiliser, je pense que vous devez savoir ce que vous faites et les paragraphes "Paramètres" et "Configuration XML" vous suffiront certainement.

The best way to insert Soplaya in a page is to use the SWFObject javascript librairy. So go there, download it and upload "swfobject.js" on you site. If you don't want to use it, I guess you know what you're doing and the "Parameters" and "XML configuration" paragraphs will contain enough information for you.

Posted by Arno 2007.01


Paramètres - Parameters

Liste des paramètres disponibles - List of available paramaters

  • volume : entier de 0 à 90 - par défaut : 90
  • autostart : true/false - par défaut : false
  • autorepeat : true/false - par défaut : true (pour les versions Monoplayer)
  • automoveone : true/false - par défaut : true (pour les versions Multiplayer)
  • canevascolor : valeur hexadecimal (voir ce site par exemple)
  • titlecolor : valeur hexadecimal aussi (couleur du titre défilant pour les versions standard)
  • mp3 : chemin relatif* vers votre mp3. Utilisez "|" pour séparer les chemins pour les versions multiplayer.
  • img : chemin relatif* vers l'image. Utilisez "|" pour séparer les chemins pour les versions multiplayer.
  • title : titre si vous ne voulez pas utiliser les tags ID3. Utilisez "|" pour séparer les titres pour les versions multiplayer.
  • XMLPath : path to you XML file (for XML versions)

* depuis l'endroit où le lecteur est inséré.


  • volume : integer from 0 to 90 - defaut : 90
  • autostart : true/false - defaut : false
  • autorepeat : true/false - defaut : true (Monoplayer versions)
  • automoveone : true/false - defaut : true (Multiplayer versions)
  • canevascolor : hexadecimal value (check this site for example)
  • titlecolor : hexadecimal value too (color of scrolling title for standard versions)
  • mp3 : relative path to your mp3. Use "|" to separate paths for multiplayer versions.
  • img : relative path to your picture. Use "|" to separate paths for multiplayer versions.
  • title : title if you don't want to use ID3 tags. Use "|" to separate titles for multiplayer versions.
  • XMLPath : path to you XML file (for XML versions)

Posted by Arno 2007.01


Le code

Copier/Coller - Copy/Paste

Pour chaque version, la première chose à faire est d'insérer le code suivant entre les balises <head> et </head> de votre page HTML, de façon à indiquer où est située la librairie SWFObject (voir 1er paragraphe).

For each version, first thing to do is to insert the following code between the <head> and </head> in your HTML page, in order to indicate where you upload the SWFObject librairy (see 1st paragraph).

Ensuite, insérer le code suivant là où vous voulez Soplaya.

Then insert the following code where you want your Soplaya.

Ensuite, ajoutez le code suivant n'importe où après. Vous trouverez un example de code pour chaque version en bas de cette page. Copiez/collez simplement le code et enlevez les paramètres superflux. Voici un exemple pour Soplaya - Beluga.

Then, add the following code anywhere after. You can find a example of code for each version at the bottom of this page. Just copy/past, remove lines with unnecessary parameters or modify them. Here is an example for Soplaya - Beluga.

Vous pouvez changer le #FFFFFF de façon à vous accorder avec la couleur de votre fond.

You can change the #FFFFFF according to your background color.

Posted by Arno 2007.01


Configuration XML - XML configuration

Pourquoi XML et comment - Why XML and how ?

Utiliser XML signifie insérer Soplaya dans votre page et le paramétrer depuis un fichier XML extérieur. Si vous voulez changer la playlist, vous n'aurez pas à toucher au code HTML, ce qui peut être parfois pénible dans le cas où vous utilisez un moteur de templates. A la place, vous n'aurez qu'à éditer le fichier XML.

Vous pouvez télécharger une exemple juste ici (clic droit et "enregistrer sous...").

Using XML means embedding Soplaya into your page and setting up parameters with an external XML file. If you want to change the playlist, you won't have to edit your HTML code, which can be painfull if your site is using templates. Instead, you'll just edit the XML file.

You can download an XML example right here (right click and "save as...").

Posted by Arno 2007.01


Astuce - Tip

Enlevez les ".mp3" - Remove the ".mp3"

Si vous enlevez l'extension mp3 à votre fichier, les gens qui sont derrière un proxy qui n'autorise pas les mp3 pourront tout de même écouter vos morceaux.

If you remove the mp3 extension of your files, people who are behind a proxy that doesn't allow mp3 will still be able to listen to your music.

Posted by Arno 2007.01


Servez-vous ! Help yourself !

Copier/Coller - Copy/Paste

Original, Dolphin, Origilite and Wasp

Boto and Bee

Beluga, Whale and Hornet

Posted by Arno 2007.01