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

Link to comment
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...

Link to comment
Share on other sites

  • 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...
Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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