tags:

views:

7596

answers:

10

Which browsers support the html 5 <audio> tag on Windows today?

Edit: Trying http://moztw.org/demo/audioplayer/ as a test. Chrome 2, and Safari 4 not working for me.

A: 

opera 10 and ff 3.5 , don't know about safari

red777
opera doesn't AFAIK
borisCallens
A: 

I'm sure of Safari 4, Firefox 3.5 from RC1 and maybe Chrome 2.

Luke
A: 

As far as i know it is supported either partially or fully in the gecko, webkit and presto engines.

So any browser which uses an up to date version of those engines should support it.

+3  A: 

Here is a wikipedia article comparing each browser's HTML5 support: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML_5)

Jon Tackabury
That fooled me as well, since there is no mention of versions in that article. Besides, I'm hearing alot about html 5 <video> support these days, so either that page is wrong, or its out of date?
BenB
Probably best not to make decisions based on Wikipedia articles. try Modenizr instead http://www.modernizr.com/
cofiem
A: 

Gecko, Webkit and Presto engines are suppose to support it, but I think only partly. So Firefox 3.5 and Opera are your best bet.

Stephen
A: 

The page (moztw.org/demo/audioplayer) works OK in Chrome 3 (dev channel)

Thomas Broyer
+5  A: 

Safari 3.1+ and Firefox 3.5 both support the audio element. Opera 10 does not support the audio element though it does support an older version of it in the form of an Audio object. Chrome 3 will likely support the audio element.

(Just saw you wanted to know support for that specific page. That mostly depends on the codecs you are using I'm afraid.)

(Disclaimer: I work for Opera and am a member of the HTML WG.)

Anne
+1: Most useful answer given.
musicfreak
Cheers. However, I tried safari 4 on the Moz page and it doesn't seem to work. If you have time, could you please confirm?
BenB
As I suspected the reason is codecs. Safari uses QuickTime which by default does not support the Ogg/Theora/Vorbis codecs Firefox 3.5 does ship with. You will need to install http://www.xiph.org/quicktime/download.html and then it should work as far as I can tell.
Anne
+4  A: 

if this evaluates to true:

!!document.createElement('audio').canPlayType

, then you have audio tag support in your browser. Doing a feature detect like this is a lot better than parsing userAgent strings.

Alternatively, you can use something like Modernizr to handle this detect and many others for you.

Paul Irish
Other ideas/tools for detecting support: Dive into HTML5 reference http://diveintohtml5.org/everything.html jPlayer http://www.happyworm.com/jquery/jplayer/HTML5.Audio.Support/
cofiem
A: 

For Safari to support audio on Windows, Quicktime needs to be installed. The javascript snippet reports correctly if it's supported or not.

goibhniu
A: 

All of these browsers support the functionality of the tag. The reason your player does not work on Safari is because you are using OGG files. OGG is supported on Firefox and Chrome.
Firefox supports only WAV and OGG. Chrome supports everything. Opera supports only WAV. Safari supports everything but OGG.

Good luck!

Brandon Lewis