Showing posts with label MP3. Show all posts
Showing posts with label MP3. Show all posts

Friday, May 6, 2011

How To Embed MP3 Files On Website Or Blog

MP3's logoHow can you embed mp3 files into web pages?
Google audio player is a cool way to embed and play any music mp3 file on your website. This will allow your readers to play audio files directly from web pages.

To embed an MP3 file, add the following code to your web page or blog post.
<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" quality="best" flashvars="audioUrl=LINK" width="500" height="27"></embed>

Replace LINK with the URL of the MP3 file. The file can be uploaded to any server or file hosting services including your own, as long as the file is directly accessible.

You can change the width of the Google audio player to fit your content width. If you increase the height, a black empty zone starts to appear, so best keep it at 27px.


Try to play the audio file below. It is embedded using the above code.