2

I know, I know, this is a duplicate question of this and this. However, these questions are somewhat outdated, and I haven't found a suitable solution.

I would like an easy, cross-browser and cross-platform solution for playing sound in the browser using JavaScript. I use and love jQuery, and had a look at this pluggin. I've tested the demo but was disappointed. For example, I had to allow the application to play the file. I want it to just work without any plugin, authorisation, etc.

I know that the AngryBirds chrome extension plays sound in the browser seamlessly but I don't know how they do it. Any suggestions for seamless sound in the browser?

Community
  • 1
  • 1
Randomblue
  • 112,777
  • 145
  • 353
  • 547
  • I don't understand what you mean by seamlessly. Chrome has html5 support. Are you trying to figure out how to embed and control audio in html5 enabled browsers? – Candide Oct 09 '11 at 14:03
  • No. I want my code to work in most browsers, not just html5 enabled browsers. By seamlessly, I mean "it just works", in the same way jQuery "just works". – Randomblue Oct 09 '11 at 14:04
  • 1
    Then you're pretty much out of luck in terms of native support. Mp3 is supported best, and you can use flash players in hidden containers. If you even consider wav, you're going to be very frustrated, like I was a few weeks ago. – Candide Oct 09 '11 at 14:09

1 Answers1

0

I like to use Sound Manager 2 for this. It depends on Flash. It looks like it hasn't been updated in a while though, so it might not be a good choice if it doesn't already work in all the browsers you care about. Support for the audio tag is getting pretty good.

ryantm
  • 8,217
  • 6
  • 45
  • 57