Most of the online embedded music and video players are based on Adobe's Flash technology . So in order to make them work, you need your files to be encoded as mp3 ,swf or FLV . And also you need the latest version of flash player , for playback.
Here I have two methods for creating and MP3 music player for your website or blog . These players could also be used with Myspace , Orkut and other social profiles .
The first MP3 music player code is pretty easy when compared with the second one . It allows a lot customizations .
"This is how this player looks in your website"
<embed allowscriptaccess="always" flashvars="audio_duration=DURATION&external_url=Music URL" height="52" src="http://www.odeo.com/flash/audio_player_standard_gray.swf" type="application/x-shockwave-flash" width="400" wmode="transparent" /> </embed>Copy the above code to your Blogger/website/Myspace template and save settings .
Here I have used center tags to keep the player aligned to center of the post . Autostart=true/false determines the playback settings on web page's load event .
Adjust the width and size of the player by changing values width="200" and height="20" .
You may change the GIF image associated with this code . It is actually used to show an animated equalizer with this player .
The second type of Flash MP3 music player is derived from 1pixelout's Wordpress audio player plugin. We can directly use 1pixelout's standalone mp3 player with websites having support for PHP script.
Here I will explain how you can use that plugin in Blogger and other static website/blogs/social sites .
Copy the the following code and place just before </head> in your Blog's template HTML
<script language="JavaScript" src="http://coloriteman.googlepages.com/audio-player.js"></script>
Now, for enabling the flash mp3 player in a blog post, put the following in to your post.
<object type="application/x-shockwave-flash" data="http://coloriteman.googlepages.com/player.swf" id="audioplayer1" height="24" width="290"> <param name="movie" value="http://coloriteman.googlepages.com/player.swf"> <param name="FlashVars" value="playerID=1&soundFile=http://coloriteman.googlepages.com/test.mp3"> <param name="quality" value="high"> <param name="menu" value="false"> <param name="wmode" value="transparent"> </object>
If you plan on posting many MP3 clips in your blog (Blogger) , put the code into your post template by moving on to Settings>Formatting .
Remember to edit the MP3 URL (in bold letters ) with your music link .







Add a Reply / Comment







17 comments:
Hi the given HTML code in the 3rd box is Parsed ..Can you change the code??
Thanks
pls give me the code of music player using netbeans programming language.. send it to my email tnx shunder_777@yahoo.com.ph
I dont get how you get a song to be a code, its saved to my computer what do i need to get a code out of it?
I don't understand what your saying b-( .
Where do yous insert your audio file url in the blogger post code?
I can`t be able to play or import audio file to blogger even i follow correctly your instructions in putting these codes for the mp3 player in blogger.
Thanks for share golden words. But its not work
hi the player loads and everything, but my mp3 file does not play. it just keeps buffering. help?
The mp3 player actually appears on my post, but where exactly should I insert my mp3 url?
please let me know
thanks
"Remember to edit the MP3 URL (in bold letters ) with your music link."
change “ http://coloriteman.googlepages.com/test.mp3” with mp3 url you want!
pump
My added player keeps buffering but won't play any track... I copied and pasted again and again... Please help... :D Cheers! :D
thanks it works.
what do i add to get it to autoplay using the 3rd code
Hi my post is some what related to your post.
i want get url from flshplayer
http://www.loka.fm/PlayerFlash.aspx
this is that page pls any one help me
lightninggroups@gmail.com
hi.. I am using the (wordpress adapted) flash plugin to embed music track to my blog http://jalabuajunx.blogspot.com. The player loads fine, the track says buffering... but the track never plays..looks like this is a common problem.. I ll be very very glad if you could get this to work.. please help...
In the first code , find "Music URL" and change it with your Music file . @Imti Place the JavaScript file at the correct location .
What the name of the song ?!
good article currently i have decided not to install any music player .
Post a Comment
Please don't be anonymous while submitting comments or asking help.