Comprehensive html5 Audio API

前端 未结 3 1980
故里飘歌
故里飘歌 2021-02-06 13:18

For the life of me, I cannot find a complete listing of all html5 events and attributes (though I believe they may vary between browsers). A lot of m

相关标签:
3条回答
  • 2021-02-06 13:57
    • HTML5 spec: the audio element
    • When can I use... audio compatibility tables (and links to external resources)

    Unfortunately you're experiencing firsthand the fact that there simply is no official JavaScript API for audio (yet).

    0 讨论(0)
  • 2021-02-06 14:02

    As you can see from Matt's fine canIuse link

    "Consistant cross-browser support for audio is currently a mess in HTML5 ..."

    so you should take a look at sound.js ;)

    "... but SoundJS works to abstract away the problems and makes adding sound to your games or rich experiences much easier. "

    --> Polyfill : SoundJS

    0 讨论(0)
  • 2021-02-06 14:02

    w3schools has a useful event, property and method list for audio/video. Although it does not address cross browser concerns:

    http://www.w3schools.com/tags/ref_av_dom.asp

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