Embed MP3 player in website but do NOT have it autoplay

I'm not a website designer and am trying to just embed a simple MP3 player in a client website to play a single file. Tried all sorts of free players (Google, Yahoo, etc.) but none worked. The player appeared but the file would not play.

Here's the Google player code (which I like), but the file just does not play:
<embed type="application/x-shockwave-flash" src="http://www.google.com/reader/ui/3247397568-audio-player.swf?audioUrl=http://www.iobility.com/audio/interview.mp3" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" />

Any idea what I'm doing wrong?

I found the simple code below, which looks (visually) like the Google player (not sure why) and works fine, but the MP3 automatically plays when the page loads.

<object width="300" height="42">
<param name="src" value="http://www.iobility.com/audio/interview.mp3">
<embed src="http://www.iobility.com/audio/interview.mp3" width="300" height="42" ></embed>
</object>

Solutions I'm looking for:
Best - Get the Google player code (above) to work.
OK - get the simple code player to work but NOT autoplay the file.
Sal SoricePresidentAsked:
Who is Participating?
 
hieloConnect With a Mentor Commented:

<object width="300" height="42">
	<param name="src" value="http://www.iobility.com/audio/interview.mp3">
	<param name="AutoStart" value="false">
	<embed src="http://www.iobility.com/audio/interview.mp3" width="300" height="42" autoplay="false"></embed>
</object>

Open in new window

0
 
Dave BaldwinFixer of ProblemsCommented:
If you put just a link to the MP3, it won't play until someone clicks on it.  Then it will play in their media player they use for MP3s.  The "code that works" above essentially does that but auto-starts the playing.
0
 
Nenad RajsicCommented:
have a look at this: easy to install and configure: http://flash-mp3-player.net/
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
Sal SoricePresidentAuthor Commented:
hielo:
Your added parameter worked fine - thanks! Sorry for a newbie question, but, the player that appears looks like the attached screenshot. My question is WHY? Where is it getting its graphical appearance from? There doesn't seem to be anything in the code that dictates what the player will look like.  Will it look the same in different browsers?

vukovarcan:
The site you mentioned also has some good players also. I will expermient with them as well.

Thanks all for the input so far!
MP3Player.png
0
 
Nenad RajsicCommented:
Where is it getting its graphical appearance from?

it gets it from your default mp3 player on your computer (Windows Media Player?)
0
 
Sal SoricePresidentAuthor Commented:
vukovarcan:

Tried changing my default from Windows Media Player to Media Monkey and the graphical appearance didn't change. It did when I set the default to QuickTime. Just hoping it would be consistent for end-users.

Not a big deal - it seems to work fine. Thanks for the help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.