Tuesday, June 21, 2011

Embedding audio files in Blogger

Tried to embed an audio file in a blogger post earlier.

Unfortunately, it took me quite a few trials to finally get the seemingly brainless task right... namely... getting a player shown inside of the post and give the users the controls.



What is the modified code I used?


<embed src="URL for the audio file" type="audio/mpeg" loop="false" autoplay="False" volume="30" height="14" width="275"></embed>

Of course, yours truly did not work so hard as to cook the codes out herself... got the original code from the following blog: http://iscocoons.blogspot.com/2010/06/how-to-upload-mp3-files-to-play-in-your.html.

--with the only thing I changed... autoplay="False".. meaning... I will let the users decide whether they want the audio files be played or not.

2 comments: