|
I use a Google Gadget to insert within Google Sites, a Flash Playlist. We can also use a specific Flash Player for Deezer. URL of the gadget :
Using a Playlist with XSPF Web Music PlayerXSPF 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 parameterDownload 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 :
http://YOURSITE/xspf_player.swf?playlist_url=http://YOURSITE/YOURXSPFPLAYLIST.xspf &autoload=true 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> The ResultMore informations about playing MP3 files
Using a Flash Playlist from playlist.comWe use the value of the src attribute given by playlist.com as source file of the gadget.
http://www.musicplaylist.us/mc/mp3player-othersite.swf?config=http://www.musicplaylist.us/mc/config/config_regular.xml&mywidth=435&myheight=270&playlist_url=http://www.musicplaylist.us/loadplaylist.php?playlist=52128746 The Result Use a Playlist from deezer.com
We need to open the playlist, to get the URL of the playlist :
http://www.deezer.com/en/music/playlist/playlistname-playlistid#music/playlist/playlistname-playlistid We use this gadget :
The File parameter is the *swf file (the flash reader) followed by the ID of the playlist. I use the following for the example :
http://files.deezer.com/swf/kamino.swf?sl=1&cs=0&path=24903947&lang=FR The result :
More informationsFind Wines |



