A Playlist with a Flash reader


I use a
Google Gadget to insert within Google Sites, a Flash Playlist
 
 
 
 
 
URL of the gadget 

flash_playlist.xml
 
  
 

Using a Playlist with XSPF Web Music Player

 
XSPF Web Music Player is a flash-based web application that uses xspf playlist format to play mp3 songs. XSPF is the XML Shareable Playlist Format. I use the Extended version.
 

File parameter


Download the xspf player from musicplayer.sourceforge. Use the URL of the player and the URL of the xspf playlist separated by a question mark. You can add autoload=true to play song as soon the page is loaded.


Important : The MIME type of the xspf file must be application/xspf+xml.
 
We can then construct the File parameter of the Gadget :

 


https://YOURSITE/xspf_player.swf?playlist_url=https://YOURSITE/YOURXSPFPLAYLIST.xspf &autoload=true

 

The sxpf file

 

My Playlist : xspf_playlist.xspf



<?xml version="1.0" encoding="UTF-8"?>

<playlist version="0" xmlns = "http://xspf.org/ns/0/">

<title>Playlist for Google Sites - PRAC</title>

<trackList>
<track>
<location>http://sites.google.com/site/annuairevin/files/carl_orff_carmina_o_fortuna.mp3</location>
<image>http://sites.google.com/site/annuairevin/files/carmina-burana.jpg</image>
<annotation>O Fortuna - Carl Orff - Carmina Burana</annotation>
</track>

<track>
<location>http://sites.google.com/site/annuairevin/files/mozart_req_dies_irae.mp3</location>
<image>http://sites.google.com/site/annuairevin/files/mozart-dies-irae.jpg</image>
<annotation>Mozart, Requiem, Dies Irae</annotation>
</track>
 
<track> 
<location>http://sites.google.com/site/annuairevin/files/bach_243_gloria_patri.mp3</location>
<image>http://sites.google.com/site/annuairevin/files/bach-243.jpg</image>
<annotation>Bach - BWV 243 - Gloria Patri</annotation>
</track>

<track>
<location>http://sites.google.com/site/annuairevin/files/rossini_swiss_posthorn.mp3</location>
<image>http://sites.google.com/site/annuairevin/files/swiss_car.jpg</image>
<annotation>Rossini - Guillaume Tell - Swiss Posthorn</annotation>
<info>http://www.poste.ch</info>
</track>

</trackList>

</playlist>


URL using Google Sites as a host


We can host these 2 files (swf and xspf) within Google Sites. Copy the URL, past the URL in the address bar, Google Sites will give you an URL like this :



https://nnnnnnnn-a-nnnnnnnn-s-sites.googlegroups.com/site/SITENAME/FILENAME


Use this URL to create the File parameter of the gadget.

 

The Result

 

 


Using the Dewplayer Playlist from alsacreations 

 

We can host the swf file and the xml file within Google Sites. As above we use the secure URL to access the files :



https://nnnnnnnn-a-nnnnnnnn-s-sites.googlegroups.com/site/SITENAME/FILENAME 



The xml file (Playlist)


My Playlist : dewplayer-playlist.xml
 



<?xml version="1.0" encoding="UTF-8"?>

<playlist version="1" xmlns="http://xspf.org/ns/0/">

    <title>Playlist PRAC</title>
    <creator>Philippe Chappuis</creator>
    <link>http://www.liens-du-vin.ch/</link>
    <info>Essais Dewplayer Playlist</info>
    <image>http://www.liens-du-vin.ch/_pic061/dewplayer-flash-player.png</image>

    <trackList>

        <track>
          <location>http://www.liens-du-vin.ch/_files/thanks.mp3</location>
          <creator>Philippe Chappuis</creator>
          <album>Essais</album>
          <title>Thanks</title>
          <annotation>Texte remerciement</annotation>
          <duration>5000</duration>
          <image>http://www.liens-du-vin.ch/_pic061/dewplayer-flash-player.png</image>
          <info>Merci de votre visite</info>
          <link>http://viti-vino.blogspot.com/2009/06/sonoriser-ses-images-avec-dewplayer.html</link>
        </track>
        
        <track>
          <location>http://www.liens-du-vin.ch/_files/carl_orff_carmina_o_fortuna.mp3</location>
          <creator>Carl Orff</creator>
          <album>O Fortuna</album>
          <title>Carmina Burana O Fortuna</title>
          <annotation></annotation>
          <duration>48000</duration>
          <image>https://sites.google.com/site/annuairevin/files/carmina-burana.jpg</image>
          <info></info>
          <link>http://fr.wikipedia.org/wiki/Carmina_Burana_(cantate)</link>
        </track>
        
        <track>
          <location>http://www.liens-du-vin.ch/_files/bach_243_gloria_patri.mp3</location>
          <creator>Bach Jean Sebastien</creator>
          <album>MAGNIFICAT BWV234</album>
          <title>Bach Gloria Patri</title>
          <annotation></annotation>
          <duration>30000</duration>
          <image>https://sites.google.com/site/annuairevin/files/bach-243.jpg</image>
          <info>Sonoriser ses images</info>
          <link>http://www.liens-du-vin.ch/image-sonore-script.htm</link>
        </track>
        
        <track>
          <location>http://www.liens-du-vin.ch/_files/rossini_swiss_posthorn.mp3</location>
          <creator>Rossini</creator>
          <album>Rossini Swiss Post Horn</album>
          <title>Rossini Swiss Post Horn</title>
          <annotation></annotation>
          <duration>64000</duration>
          <image>https://sites.google.com/site/annuairevin/files/swiss_car.jpg</image>
          <info>Jouer des fichiers MP3 sur son site</info>
          <link>http://www.liens-du-vin.ch/playing-mp3-files.html</link>
        </track>
        
        <track>
          <location>http://www.liens-du-vin.ch/_files/mozart_req_dies_irae.mp3</location>
          <creator>Mozart Wolfgang Amadeus</creator>
          <album>Mozart Wolfgang Amadeus Dies Irae</album>
          <title>Mozart Wolfgang Amadeus Dies Irae</title>
          <annotation></annotation>
          <duration>42000</duration>
          <image>https://sites.google.com/site/annuairevin/files/mozart-dies-irae.jpg</image>
          <info>Gadget Google Dewplayer Multi</info>
          <link>http://www.liens-du-vin.ch/flash_dewplayer-multi-script.htm</link>
        </track>

       <track>
          <location>https://sites.google.com/site/annuairevin/files/CDM-Operas_Aidachoeur.mp3</location>
          <creator>Verdi Guiseppe</creator>
          <album>Verdi Aida</album>
          <title>Verdi Aida</title>
          <annotation></annotation>
          <duration>400000</duration>
          <image>https://sites.google.com/site/annuairevin/files/aida-verdi.jpg</image>
          <info>Des fichiers Mp3 sur Google Sites</info>
          <link>https://sites.google.com/site/annuairevin/playing-sounds-in-google-sites</link>
        </track>
       
     </trackList>
</playlist>


The Flash Wrapper



I use a Google Gadget to call the Flash Animation
 


 
URL of the gadget 

flash_container_fs.xml
 
  


The File Parameter



https://cfd7e805-a-62cb3a1a-s-sites.googlegroups.com/site/annuairevin/files/dewplayer-playlist.swf?xml=https://cfd7e805-a-62cb3a1a-s-sites.googlegroups.com/site/annuairevin/files/dewplayer-playlist.xml




The Result





More informations

 


Playing mp3 files 


Use a Google Gadget to Play sound with Google Sites
 
 

URL de spécification du gadget introuvable


URL de spécification du gadget introuvable



URL de spécification du gadget introuvable
 


Find a Wine with Google CSE

URL de spécification du gadget introuvable