Jump to content

How to embed .mp3 audio file to my php page??


nutz

Recommended Posts

I have a website developed using Dreamweaver/PHP.

 

I was trying to embed a .mp3 file to one of the pages.

 

Tried few codes which I got from googling i.e odeo player, google player etc.

 

I can get the image of the players on the page and it seems to be running as well, but with no sound output..

 

Can anyone suggest a working code for my requirement please?

 

many thanks in advance...

echo "<embed src=\"SONGURL.mp3\" autostart=\"true\" loop=\"true\" hidden=\"true\"></embed>\n"
    ."<noembed><bgsound src=\"SONGURL.mp3\" loop=\"infinite\"></noembed>";

 

Obviously, you can change the values, to unhide the little play bar and whatnot...

  • 3 years later...
  • 1 month later...

You can use below code for that...

 

<embed type="application/x-shockwave-flash" flashvars="audioUrl=[url=http://d5duwnm1arn0s.cloudfront.net/awp-content_1/24396wp10302/files/T---Billa-Theme-Music.mp3]http://d5duwnm1arn0s.cloudfront.net/awp-content_1/24396wp10302/files/T---Billa-Theme-Music.mp3[/url]" src="[url=http://www.google.com/reader/ui/3523697345-audio-player.swf]http://www.google.com/reader/ui/3523697345-audio-player.swf[/url]" width="600" height="27" quality="best"></embed>
It's working fine...
  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.