1

It has to work on IE8 and above, and the rest of the modern browsers (Firefox, Chrome, Opera).

Related question: How to play a notification sound on websites?

I've tried using the Yahoo! Media Player, but it refuses to pick up on my .mp3 links despite them looking like:

<a id="wolf-blue" href="/Public/audio/wolf.mp3">a</a>

Assuming I have a .mp3 file and I want to play it when a timer reaches 0, what do you suggest I use to play this sound file? I do not want to show my users any sort of player UI, just play the sound.

Community
  • 1
  • 1
Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257

1 Answers1

0

You'll want to check out jPlayer. It's an HTML5 Audio player that has fallback to Flash for browsers that don't support HTML5.

You can use CSS to completely customize the player, including hiding it from view.

jamesmortensen
  • 33,636
  • 11
  • 99
  • 120
  • Would it be easier if I were to use a HTML – Only Bolivian Here May 06 '12 at 04:40
  • I'm not sure. I know that jPlayer has an API so you can do lots of things with it. It might be more power than what you need, but it does have all of the cross-browser stuff figured out. That would definitely be something you would be 100% responsible for if you did this without a third party. To clarify, IE8 would need to use Flash, and you'd have to do this on your own without a library. – jamesmortensen May 06 '12 at 04:49