What to do with incompatibility in HTML 5 audio in browsers?

I need to use HTML 5 sound to play sounds. However, codec support is very annoying:

  • Firefox: Ogg, Wav
  • Safari: Mp3, Wav
  • Chrome: Ogg, Mp3
  • Opera: Wav

I mainly need to code in Wav and Ogg / Mp3. However, Wavs are terrible in size, and this is a very important point for me. So, I think I should go to Mp3 + Ogg, leaving Opera and IE?

+6
html5 audio codec
source share
4 answers

According to http://my.opera.com/core/blog/2009/12/31/re-introducing-video , Opera 10.5 (still in alpha beta) supports Vorbis and PCM Wav for audio. I don't think 10.10 actually supports an audio tag.

Safari will support Vorbis (and Theora on the video side) if Apple ever wants to enable support for Xiph codecs in the QuickTime environment (you can add it manually, of course, with XiphQT, but you obviously can't count on it for web developer goals).

In any case, Vorbis obviously has the most attention (Chrome has more market than Safari, Opera makes up about half of Safari, and obviously FF is huge), and it really does not have strong opposition to Theora. In fact, I could see Vorbis support in Safari in the near future, unlike Theora.

+3
source share

I think you answered your question. Since you are already leaving IE, why not leave Opera too? Then you can use Ogg / MP3 for others and maybe get away with some simple flash for IE / Opera.

+2
source share

Why not use Flash?

oh wait. that would be too easy.

+2
source share

If you still need to use Flash for IE, why not just build it once? You only have to keep it up for the next 5 years of browser updates every time something changes.

-one
source share

All Articles