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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hieloCommented:

<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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.