Internet and Programming are not only for the Genius.
Utilize Internet and Programming for Your Own Benefits. Have fun with it.

 
Showing posts with label Audio. Show all posts
Showing posts with label Audio. Show all posts

Wednesday, May 9, 2007

A Little Flash MP3 Player

Your mp3 links (<a href="my_file.mp">Link</a>) will automatically turned into a very simple player (mp3 player) that allows you to easily play mp3 files directly on your blog.

How to include

Copy the code below and place it in anywhere in your HTML:

<script type="text/javascript" src="http://googlepage.googlepages.com/player.js"></script>


Example:

Suspicious minds
Mrs McGrath
Vertigo
Just A Gigolo
Deja Vu
One Night Only
Funky Town
Halo Theme
Luka
Smells Like Teen Spirit
Children

Tuesday, May 1, 2007

How to Use XSPF Web Music Player

Do you want to have something like this on your website?

 
Here's the code to be embedded on your website:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="15" id="xspf_player" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.yourdomain.com/xspf_player_slim.swf?playlist_url=http://www.yourdomain.com/DCTalk.xspf&autoplay=true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#e6e6e6" />
<embed src="http://www.yourdomain.com/xspf_player_slim.swf?playlist_url=http://www.yourdomain.com/DCTalk.xspf&autoplay=true" quality="high" bgcolor="#e6e6e6" width="400" height="15" name="xspf_player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>

Before that, you have to download the XSPF Web Player from http://musicplayer.sourceforge.net/ first, and upload them to your web server.

Then, you have to create the XSPF Playlist. Here's the XSPF Playlist code:

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.yourdomain.com/file1.mp3</location>
<image></image>
<annotation>DC Talk - Betweek You and Me</annotation>
</track>
<track>
<location>http://www.yourdomain.com/file2.mp3</location>
<image></image>
<annotation>DC Talk - In the Light</annotation>
</track>
</trackList>
</playlist>

NOTE: Make sure you have the MP3 files uploaded to somewhere (ex: www.fileden.com) on the Internet.

For more information, visit: http://musicplayer.sourceforge.net/

--  Rm 8 : 28; Is 55 : 8-13