An unofficial blog that watches Google's attempts to move your operating system online since 2005. Not affiliated with Google.

Send your tips to gostips@gmail.com.

July 22, 2006

Embed MP3 Files Into Your Website

You have an MP3 file (a podcast, a song of your band, a lecture) and you want to share it with the visitors of your site. You can just put a link to the MP3 and let people download it or you can include it as an object and let the browser play it with a plug-in like QuickTime (and most of the times also crash the browser). Most people want to preview the audio and not wait until it downloads completely. You can play a partial MP3 file in audio player, but many people aren't aware of that.

But there's another away: a Flash player that allows you to pause and rewind the MP3. It's like an audio version of Google Video or YouTube, with the difference that the file is hosted on your server (or on another server). While there are many solutions based on Flash, this is the one I like the most. It's a modified version of Odeo player, that's used to play podcasts on odeo.com:



You just have to replace [MP3 file address] with the actual address.

Here you can see how it looks (in this audio, Marissa Mayer talks about innovation at Google):



Update (April 28th, 2010): Odeo.com is down and the player no longer works. "Odeo will be down for maintenance and site improvements. We will restore service as soon as possible. Sorry for the inconvenience," says the site. Another player you can try until odeo.com is back online is Google Reader's player.

292 comments:

  1. i guess the odeo thing (which i dont understand really, lol) is back
    my players are back :-)

    www.myspace.com/nonsensenirvana
    www.myspace.com/fishenelmar

    - fish -

    ReplyDelete
  2. This post is awesome! Thank you for posting it.

    ReplyDelete
  3. works GREAT in IE...

    ...but when viewed in other browsers (Firefox, Opera, Safari and Navigator) this sounds scratchy and garbled.

    see for yourself: http://www.bouldercreekranch.net/

    why? please HELP!!!!

    and thanks ahead of time for any input.

    ReplyDelete
  4. update to my problem (posted directly above):

    i've had a number of friends try the player out on their computers.

    about half the time its garbled, regardless of the browser used.

    we're tried it using Firefox, IE, Opera, Safari, Navigator and Chrome.

    everyone has had different results: it might play well on IE... or it might not. every test resulted in a different response.

    there appears to be no consistent indicator.

    anyone with any ideas???

    ReplyDelete
  5. You can change the player to Black by typing in black, where it says grey.
    Also, Odeo is down again and won't play the script on my blog.
    Does anyone know how to embed a player that pops out, and is not held to ODEO's Website maintenance???
    www.kusf-archives.com

    Bryan

    ReplyDelete
  6. I think it works great within 2 minutes I had the mp3 uploaded and running. The only problem I have is that I cant seem to put another player on a seperate page and play a differnt mp3 file any thoughts

    ReplyDelete
  7. Hi. I am a real novice at this stuff...using MS Publisher to create a simple site...this player would be great for me....
    Have pasted the code, entered the URL for my mp3. The player appears on my page, when I click the play button a message flashes momentarily (too fast to read it) but something like..."loading http.....". Then nothing. I can press play & pause but there is no sound, no movement.

    Clues or tips?

    ReplyDelete
  8. The player loads onto my website, but when i press play, it just comes up 'loading' but nothing loads. I store my files on this location 'http://share.wiredtron.com/myfiles.php'

    thanks

    ReplyDelete
  9. Hi

    Ok i added the mp3 player for my blog and uploaded songs on http://www.fileden.com/.

    But what should i do now??????????????????????????????
    What is the next step?
    How can i listen to them on the player?

    Thanks

    mijou

    ReplyDelete
  10. Hey, this is good... i want to play the music as and when the blog opens! can this be done?

    ReplyDelete
  11. "is there any way to change the color of that pink play button? "

    Scroll up

    ReplyDelete
  12. "is there any way to change the color of that pink play button?"

    scroll up

    ReplyDelete
  13. This player disappears at random. Every so often I check my site and it's gone. I know it's free but what's the point of offering a service, free or not, if it's not reliable?

    ReplyDelete
  14. thx. a million works great!!!!

    ReplyDelete
  15. how do you make the http://sites.google.com/site/thehiphopsource/Home/A.K.A.ThePhreshPrince-MeMyself%26I-TheHipHopSource.com.mp3?attredirects=0
    a direct link?

    Send the answer to dillbillz@thehiphopsource.com

    ReplyDelete
  16. If you know what MP3 you want to host, beemp3.com has an embed able player. Just a find i thought i would share.

    ReplyDelete
  17. thank you very much! it really works with Internet Explorer 8 which has a lot of problems with other players. With this on, everything is all right!!!

    ReplyDelete
  18. Hi all,
    I've a blog http://foruandonlyu.blogspot.com/ I've managed to make one mp3 play in the background. But now i want to add more files and make a playlist. Is there a way i can do that? Please check the blog and let me know.

    ReplyDelete
  19. Really appreciate it, cheers.

    Is there anyway to get the song name to come up in the display field??

    ReplyDelete
  20. If you just use the following code, the viewer's computer will play the file using whatever their default media player is. It will support audio and video files as long as you know what the correct file type definition is. you can even use local files by addressing the file with "file://" in front of the full path to the local file.

    I can't post html in a comment, so remember to put <> around each of the following lines for this to work.

    object type="audio/mpeg" data="media/audio/song.mp3" width="250px" height="40px"

    param name="src" value="media/audio/song.mp3"

    param name="autoplay" value="false"

    param name="autoStart" value="0"

    /object

    ReplyDelete
  21. HOw can I make my files available for download on my blogger website guys, i've been searching this for weeks but no one answers that.
    + Thanks for all your suggestions above
    , they helped me a great deal
    Just answer the question above please..


    - Umair Mahmood

    thescorpion789@hotmail.com

    ReplyDelete
  22. Guys, for those of you that don't like it when odeo site is down and therefore your player doesn't work -- this is die to the fact that the shockwave file that is the player, is hosted on their site.

    Look at the embed url -- <embed src= "http://www.odeo.com/flash/audio_player_standard_gray.swf" ../>

    So there really is an easy solution, download the swf file and host it on the same website where you want it to appear.

    Open a command prompt and type 'wget http://www.odeo.com/flash/audio_player_standard_gray.swf'

    This will download the .swf file to your computer, upload this to your website space and alter the embed url to point to where you put it in your webspace.

    If you save it into your website space top directory then the code will then look like this :-

    <embed src= "http://yoursite.com/audio_player_standard_gray.swf" quality="high" width="300" height="52" allowScriptAccess="never" wmode="transparent" type="application/x-shockwave-flash" flashvars= "valid_sample_rate=true&external_url=[MP3 file address]" pluginspage="http://www.macromedia.com/go/getflashplayer":gt; </embed:gt;

    Easy, works like a charm, and you don't then need to rely on odeo.com being available so will never go down.

    HTH

    ReplyDelete
  23. Help - I have posted the code and it shows up but there is no sound. When I press the button it says stop. Here is what I have any suggestions on editing the code to make it play??

    embed src= "http://www.odeo.com/flash/audio_player_standard_gray.swf" quality="high" width="300" height="52" allowScriptAccess="always" wmode="transparent"type="application/x-shockwave-flash" flashvars= auto_play=”true” &valid_sample_rate=true&external_url=http://www.fileden.com/files/2009/6/5/2467472/06-02-09%20Colony%20Days%20Grotto%20Main.mp3&audio_duration ="1:01"pluginspage="http://www.macromedia.com/go/getflashplayer">

    ReplyDelete
  24. not working for me at all any ideas guys?

    ReplyDelete
  25. You have given useful advice on embedding.

    But where to host the mp3 files to get the links which have to be placed in the code?

    i have tried upload-mp3.com but the files mysteriously disappear after few days and even the account becomes non-operative.

    please suggest a reliable website where I can HOST the mp3 files.

    thanks

    ReplyDelete
  26. Hi,

    Could you please tell me how I can make my song to play repeatable automatic.

    Please answer me!!
    e-mail: nansylambropoulou@hotmail.com

    ReplyDelete
  27. Thanks much for this mini audio player. You just made my day!

    I assume it is free to use... no copyright issues or anything that I need to be concerned about?

    ReplyDelete
  28. Perfect , Wonderful working for me!!!

    Thx A lot

    ReplyDelete
  29. This is wonderful, but I after I read ALL the postings I have NOT found how to make it LOOP.

    Is it possible?

    Tks

    ReplyDelete
  30. Media Master used to be good.
    Now it's gone.

    ReplyDelete
  31. This player is working for me in IE, FF, & NS... however, is invisible in Safari 4. I'm going to change the host site from Odeo to my own as suggested above and see if that helps. Also, I added the parameters for auto looping (loop=true) and duration (audio_duration =?)... and, neither are working.

    Any additional suggestions for Safari, looping and duration?

    ReplyDelete
  32. I have looked fucking everywhere and found diddly! And here it is. Replace grey with black and just copy paste... Whohoo! I'm a webdesigner!
    www.elephantinehq.org/

    ReplyDelete
  33. Awesome, we posted an interview and it works great. http://www.houseofspeed.com/latest_news.html

    ReplyDelete
  34. WHYYY WONT IT WORK!!?!

    ReplyDelete
  35. very nice and simple! thanks for this!

    ReplyDelete
  36. you can simply add mp3 file without a flash using the html embed code its the simple way but it used the media core active X ( embed src="url of file" )(/embed) replace the brakets

    ReplyDelete
  37. i have a some prob please tell me How can I adjust Volume and size?

    ReplyDelete
  38. Does it work in Firefox or Safari?
    So far I have no luck!

    ReplyDelete
  39. Still working but I wonder if there is any way out to add a playlist along ..?

    Thnx for the code.

    ReplyDelete
  40. This was exactly what I wanted! Thank you!

    ReplyDelete
  41. I am mystified. I cant get the URL for an MP3 to work at all with this player. I have uploaded two MP3s to at least three free hosting websites. Houndbite's URL wont work except on their own clunky player. Garage Band's URL won't work.

    I am trying to get my client's songs up on her Web site with the player featured here, but no luck. I know I am working with MP3s because I converted them and successfully uploaded to Garage Band and Houndbite. < http://www.erinrametta.com >

    ReplyDelete
  42. Duh. I just answered my own question with help from an earlier post here. For those of you who are as clueless a I was, you host the MP3 on your own site. I spent three days trying to park my MP3s on other sites and then using the URLs generated. No luck.

    Finally I uploaded the MP3s to my client's Web site like this: < http://www.erinrametta.com/02 Waiting Room 1.mp3 >. The 02 Waiting Room 1.mp3 part is the title of one of my MP3s. BTW, you can convert from your CD or iTunes or whatever to MP3 with the free converter, "Switch" available online.

    And then of course I loaded that entire URL into the player featured on this site and coded the thing to black, which I think is much classier. I hope this posting saves someone else a whole lot of time. You can see my results at < http://www.erinrametta.com/music.html >

    ReplyDelete
  43. That duration code that someone posted up here earlier is really useful. Otherwise the thing can do a start stop dance and the slider doesn't quite know what to do. Just in case you missed it, it is:

    "If you know the duration of the audio, add audio_duration=[duration], like this valid_sample_rate=true& external_url=[MP3 file address]&audio_duration =[duration], where duration is a real number expressed in seconds.

    This way the slider will know its range of values and it will work better."

    The code was originally posted by Ionut Alex, Chitu. Thank you.

    ReplyDelete
  44. I've been trying for hours to get this to work on my blogspot site, but it keeps stopping before I can get it to play anything. I've been using FileFactory as a host. Odeo doesn't appear to be down. What is going on???! Am I just cursed? I'm using Firefox, the latest version.

    ReplyDelete
  45. hello abt the mp3 embedding. i uploaded a .mp3 file to a website and here is the link:
    http://www.fileden.com/files/2009/8/25/2554334/coffin.mp3

    when i inserted this into the : URL-[]and ran my webpage on a browser, it still doesn't work. anyone know if i am doing something wrong?

    ReplyDelete
  46. How can aperson make the player invisible with a continuous loop?

    ReplyDelete
  47. Please help why does this not autoplay ?

    ReplyDelete
  48. is there a way to get the player to start from the beginning? it seems to leave off where it was the previous time i accessed my page. thanks.

    ReplyDelete
  49. Could someone help me? I can't find how to upload files onto boomp3.com... and have a blogger, so this isn't working. Just says 'stopped' on page although player shows up...

    PLEASE HELP!!

    xoxo

    ReplyDelete
  50. where do we look for the actual adress of the music file? like the "http" link? so we can embed it into our blog. any help will be great appreciated, thanks!!!

    ReplyDelete
  51. does anyone know the legal ramifications?

    ReplyDelete
  52. Hi all... i have a problem...

    I had set the Link from the Music.mp3 in the [] and the music dont load in the player... why?

    ReplyDelete
  53. Does this cut down on bandwidth usage?

    ReplyDelete
  54. Thanks Alex.
    Today I'm looking for this, I read your post and I get.
    I use my PageCreator account to upload mp3. Easy and pratical way.
    Black color looks great.

    Thanks a lot

    ReplyDelete
  55. Thanks for this info! One thing I have found, for those of you who can see the player but your file won't play, it is really dependent on your file hosting service. I tried many, many times to get this player and the Google Reader player to play a 3 second mp3 and couldn't get anything from FileFactory. When I hosted the audio file at Box.net, boom, worked like a charm.

    ReplyDelete
  56. can someone please help me get the auto play and auto loop working....im designing a website for a friend...this is what mine looks like...

    ReplyDelete
  57. This was super helpful! Thank you.

    ReplyDelete
  58. pls tell how make it autoplay??

    ReplyDelete
  59. great work, great help, thanks a lot alex~:)

    ReplyDelete
  60. i still need the help of codes for looping , or auto-loop, where to add it, ?

    i tried a couple of ways, did not work,

    thanks.

    ReplyDelete
  61. Pink?

    Go back into the html. Delete gray, type black.
    .

    ReplyDelete
  62. Embedding an MP3 video into your site or blog can add allot of personality to your blog. This code is simple and easy and its great you are helping people with this information.

    http://www.pricego.org/MP4_Players_s/4.htm

    ReplyDelete
  63. all of a sudden this has stopped working... any tips?

    ReplyDelete
  64. According to odeo.com, "Odeo will be down for maintenance and site improvements. We will restore service as soon as possible. Sorry for the inconvenience."

    ReplyDelete
  65. i try to put it on my facebook profile But didnt work.!!!
    Why.??
    can someone help me pliz..!!♥

    ReplyDelete
  66. Guys im trying to post just 1 song on my web site and i dont want an mp3 or any thing to show up i just want the song to play like its invisible will this Do that ....if not Do u guys no anywhere i can go to do somethin like that.

    ReplyDelete
  67. show how to embed multiple tracks or do you just put a coma and the next track .And how can your friends download you audio?

    ReplyDelete
  68. im creating a website on yola, and i want to add an mp3 player. but when i try to add my own music, it doesnt work. i hit 'preview' and clicked the play button, and all that came out is some cheesy tropical music. help, please!

    ReplyDelete
  69. this is not working now..........

    ReplyDelete
  70. can anybody help me out?

    I have 65MB podcast audio .mp3 file. How can i play on my website. mp3 file is uploaded on my webspace. How can i embedded into my site.

    or another best way?

    ReplyDelete
  71. ei... how to make it autostart?

    ReplyDelete
  72. great! check this musicplayer
    http://music.xe-media.ch/
    :)

    ReplyDelete
  73. -1- Music storage:
    Initially, I hosted the music at sites.google.com, but the music would not play through IE or Chrome.
    Opened account at "Dropbox" (http://www.dropbox.com/referrals/NTg2OTMyODQ5) FREE storage up to 2G. Upload audio files to "Public" folder.
    Copy "public link."

    -2- Mp3 Player:
    Opened account with www.mixpod.com. FREE. Select skin, variety of styles and colors. Link to "Dropbox" URL for music. Click SAVE.

    -3- Copy the EMBED code and paste into your blog HTML.

    Working example:
    My site is -
    http://soundwarehousediary.blogspot.com/
    Mp3 player right panel, if you want to judge before deciding. Good luck.

    ReplyDelete
  74. i think that the website of the player might be down now, it might've happened yesterday, cause it no longer works...

    ReplyDelete
  75. I use this generator:
    http://www.webestools.com/mp3-player-flash-swf-generator-flash-mp3-player-fla-script-play-music-mp3-site.html

    It's easier.

    ReplyDelete
  76. Cool! So, I just pick any random mp3 file and it will play using the settings on the player?

    ReplyDelete
  77. i see this article quite old. i have try all step, and i failed :(. im using mozella browser.
    please help me.

    ReplyDelete
  78. How do i convert mp3 music files on my computer to a data cd to transfer it to another computer or mp3 player?

    ReplyDelete
  79. a solution for radio is http://www.findradio.net/findradio-widget

    ReplyDelete
  80. Can anyone help me with a small problem ?

    I want to put an mp3 from my harddisk in the web page....so what should i use in place of the [mp3 address] ??
    I tried the local address but it doesnt work !

    ReplyDelete
  81. thanks, nice player, I just added it to my blog

    anyway, it support multiple files? if so, how?

    just info, I used http://www.fileden.com since this filehosting has directlink feature.

    ReplyDelete
  82. i'm having trouble finding the address of my mp3 to add to the link. where do i find it?

    ReplyDelete
  83. Hello Sir
    I got code but can you tell me how can I find the exact link of the Mp3 file?
    Do i need to upload mp3 on my server?
    please help me.. Reply please
    Thank You

    ReplyDelete
  84. Before I upgraded to Firefox 8.0, audio files on 3 websites were working. The audio codes are windows audio codes. After the firefox upgrade, one of the blog sites lost the audio. Now another site has lost the audio not only on Firefox but also on Chrome. I have downloaded several plugin but when I am in Chrome, I receive the following message:

    This program or feature
    "\??\C:\users\owner\AppData\Local\Temp\wmpfirefoxplugin.exe"
    cannot start or run due to incompatibility with 64-bit versions of Windows. Please contact the software vendor to ask if a 64-bit Windows compatible version is available.

    It appears the plugin that is needed is in my Mozilla Firefox X86 Program files but trying to get it to the two browsers does not seem to work. Total Frustation! No sales pitches, please!

    ReplyDelete
  85. Can you pot the swf file for use? i dont want to use odeo.com since I dont know how long the'ill still provide this service ..

    ReplyDelete
  86. it isn't working

    ReplyDelete
  87. Can't get any of these to show up on my blog, I embedded the code on the html page. Any advice?

    ReplyDelete

Note: Only a member of this blog may post a comment.