Monday, September 1, 2008

Google MP3 Player

Hey !, did you ever hear about Google Mp3 player ?.Many of your friends are sending dozens of emails  with audio files attached. Gmail has option to play those audio files in the Mail box itself. So here the clue comes in, to play those audio files Google should use some Mp3 player. Now the question: where the  player is ?. yup here it is "http://mail.google.com/mail/html/audio.swf?audioUrl=MP3_URL"  :), replace the MP3_URL with the web URL of the MP3 song you wish to listen. Well then, we got the player and we heard the song, why should not we use it in our blog ? Yes! we do.  Here is the HTML code to go.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="500px" height="27px" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://mail.google.com/mail/html/audio.swf"/>
<param name="FlashVars" value="audioUrl=MP3_URL"/>
<param name="quality" value="best" />
<param name="bgcolor" value="#EEEEEE" />
<param name="scale" value="noScale" />
<param name="wmode" value="opaque" />
<param name="salign" value="TL" />
<embed id=Player scale="noScale" salign="TL" src="http://mail.google.com/mail/html/audio.swf?audioUrl=MP3_URL"
wmode="opaque" quality="best" bgcolor="#EEEEEE" width="500px" height="27px" name="Player" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

Customize this code to your taste,

  • Change MP3_URL at line no 4 to the web URL of the song you want,
  • play around the value of bgcolor at line no 6.
  • ooops..you got the clue to play. i am sure you will play good.

 

This player is nothing other than the Google's Video player, but this is inline version of that, just to play audio files.

No comments:

Post a Comment