Click here to Skip to main content
16,016,306 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,

I want to play mp3 file on a web page.For this I'm using the below code

<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" quality="best" flashvars="I'm writing here the url" width="500" height="27"></embed>    

This shows the black empty area.

And when I change the src property
src="http://www.google.com/reader/ui/3523697345-audio-player.mp3"

The player appears and doesn't play the file.



Guide me please.

Thanks
Manish Namdev
Posted

Try by setting autoplay="1". Something as below.

HTML
<embed type="application/x-shockwave-flash" autoplay="1" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" quality="best" flashvars="I'm writing here the url" width="500" height="27"></embed> 
 
Share this answer
 
v3
Comments
Manish Kumar Namdev 5-Nov-11 6:38am    
I tried but file is not playing.
And I have not done any coding in server side
RaisKazi 5-Nov-11 7:01am    
It's difficult to guess exact problem. Have a look at below link, it may help.
http://videoplayer.codeplex.com/
add url of audio file at the end of src
like this

src="http://www.google.com/reader/ui/3523697345-audio-player.swf?audioUrl=http://mysite/songs/new.mp3
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900