Find Us On Twitter Blogger web designing seo Windows 7

Saturday, October 18, 2008

Flash mp3 music player code for Website/Blogger/Myspace


advertisements

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&amp;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&amp;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 .

17 comments:

Anonymous said...

Hi the given HTML code in the 3rd box is Parsed ..Can you change the code??
Thanks

Anonymous said...

pls give me the code of music player using netbeans programming language.. send it to my email tnx shunder_777@yahoo.com.ph

CharlesInCharge said...

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?

techknowl.com on February 26, 2009 10:09 AM said...

I don't understand what your saying b-( .

Anonymous said...

Where do yous insert your audio file url in the blogger post code?

DZNS 963 AM RADYO TOTOO on March 22, 2009 6:50 PM said...

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.

Only Messages on April 6, 2009 1:29 AM said...

Thanks for share golden words. But its not work

Goddess Sparkle on April 6, 2009 11:23 PM said...

hi the player loads and everything, but my mp3 file does not play. it just keeps buffering. help?

Anonymous said...

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."

bustanul arifin on April 27, 2009 1:49 PM said...

change “ http://coloriteman.googlepages.com/test.mp3” with mp3 url you want!

pump

Anonymous said...

My added player keeps buffering but won't play any track... I copied and pasted again and again... Please help... :D Cheers! :D

DFH on May 9, 2009 2:19 PM said...

thanks it works.
what do i add to get it to autoplay using the 3rd code

P!R♥TeS@ SAMUI on May 10, 2009 2:30 AM said...

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

Imti on May 14, 2009 10:09 PM said...

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...

techknowl.com on May 15, 2009 10:52 AM said...

In the first code , find "Music URL" and change it with your Music file . @Imti Place the JavaScript file at the correct location .

crysty @l3x on May 16, 2009 2:17 PM said...

What the name of the song ?!

sm on June 22, 2009 12:43 PM said...

good article currently i have decided not to install any music player .

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Post a Comment

Please don't be anonymous while submitting comments or asking help.

Blog Archive

 

Google ,Adsense ,Blogger ,Youtube and Orkut are registered trademarks of Google Inc US and other countries |iPhone and Mac OSX © Apple Inc | Windows © Microsoft Corporation |All other registered brands © Repective owners| 2008-2009 Techknowl.com| Privacy Policy and Contact