Jump to content

Archived

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

nutz

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

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I want to do this with radio streams can i use something along this way? Still orientating

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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