InsideGoogle

part of the Blog News Channel

Google’s MP3 Embeddable Player

Looks like some folks have been digging at the code added to Gmail with last week’s Google Talk upgrade, and figured out how to lift out the audio player used to play back voicemails. You can now embed an MP3 player in your blog, just by using Google’s player and any MP3 file. Just find anywhere to dump the file, and add it to this code:

< iframe src="http://mail.google.com/mail/html/audio.swf?audioUrl=INSERTMP3URLHERE" style="width: 450px; height: 25px; border: 1px solid #aaa;" id="musicPlayer" >< /iframe >

Here’s what it looks like with an IT Conversations podcast embedded:

Loren Baker found out that the player is simply the Google Video player. Philipp figured out exactly how to embed it in your site.

While it is a cool idea, the player does not appear to stream as well as the regular Google Video player does. It should be loading the beginning of a podcast, then playing as it loads the rest, but instead it waits to download the entire thing before playing. Verdict: Only use for small audio files.

August 23rd, 2006 Posted by Nathan Weinberg | Talk, Products, Services, Gmail, General | 8 comments



Hosting sponsored by GoDaddy

8 Comments »

  1. It plays while it is loading the file. But it also seems to cache the file, so that might be why you think it loads it all first before playing. Try clearing out your cache.

    Comment by Jason Schramm | August 23, 2006

  2. […] Nathan makes a few other good points about the Google embedded player along with the code to embed inside your website page(s). […]

    Pingback by Make You Go Hmm: » Using Google’s embedded MP3 player | August 23, 2006

  3. Any option to Autostart the mp3 file ??

    Comment by Tintin | September 4, 2006

  4. Thanks in Advance

    Comment by Tintin | September 4, 2006

  5. Just a couple of notes on using the Google Player with Internet Explorer:

    1. Delete the file suffix (.mp3) from the file you’re trying to play and change the source URL to the new file name without the suffix. This will stop IE from trying to download the file and allow google player to play it. It will produce a security warning on newer versions of IE, but this security warning can be ignored and the file will still play.

    2. The Google Player requires mp3s that are coded at 44.1kHZ - no more or less or the file will play at the wrong speed.

    3. The player will look funny in either IE or FireFox unless you change “height: 25px; border: 1px” to “height: 30px; border: 0px”

    P.S. To see a working example of the player visit my website at http://homepages.ihug.co.nz/~timansley/index.htm

    Comment by T.O.K. | September 23, 2006

  6. […] Man, I love these guys. And I’m only posting about it because I want to test out another music streaming plug-in. This one’s called PodPress. I think, with a little tweaking, it could work put better than the last one, which is a tricky pilfering of the Google Video interface I read about here. […]

    Pingback by H O L L Y W O O D L A N D » SFX: Buffalo Tom | December 5, 2006

  7. This doesn’t work in Safari (I’m using 2.0.4). Does anyone know of a workaround?

    Comment by Olly | February 15, 2007

  8. It’s not working today in Firefox–has switched to a google video player and won’t play the files. I built my site around this…I’m screwed!

    Comment by Mike | July 11, 2007

Leave a comment