Click here to Skip to main content
11,408,835 members (61,578 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET HTML
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 5-Nov-11 1:20am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

<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> 
  Permalink  
v3
Comments
Manish Namdev at 5-Nov-11 6:38am
   
I tried but file is not playing.
And I have not done any coding in server side
RaisKazi at 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/
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 390
1 Sergey Alexandrovich Kryukov 334
2 Maciej Los 155
3 PIEBALDconsult 140
4 Peter Leow 140
0 Sergey Alexandrovich Kryukov 8,676
1 OriginalGriff 6,855
2 Maciej Los 3,322
3 Abhinav S 3,238
4 Peter Leow 3,034


Advertise | Privacy | Mobile
Web03 | 2.8.150414.5 | Last Updated 28 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100