Click here to Skip to main content
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 Sergey Alexandrovich Kryukov 504
1 Maciej Los 349
2 Kornfeld Eliyahu Peter 325
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 28 Mar 2013
Copyright © CodeProject, 1999-2014
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