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

前端 未结 12 1140
旧巷少年郎
旧巷少年郎 2020-12-05 23:18

Which browsers support the html 5 tag on Windows today?

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

相关标签:
12条回答
  • 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.)

    0 讨论(0)
  • 2020-12-05 23:43

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

    0 讨论(0)
  • 2020-12-05 23:46

    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!

    0 讨论(0)
  • 2020-12-05 23:48

    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.

    0 讨论(0)
  • 2020-12-05 23:49

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

    0 讨论(0)
  • 2020-12-05 23:51

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

    0 讨论(0)
提交回复
热议问题