开发者

Documentation for javascript audio methods?

I've searched and found many articles that discuss the common methods you can use in javascript to control HTML audio elements. However, I have not been ab开发者_如何转开发le to find anywhere that lists all of the methods available.

I should make it clear that I'm not looking for HTML audio attributes. I'm looking for methods like audio.play() and audio.pause(). I've seen these methods used in code samples all over the place, but I can't find an exhaustive list for the life of me.


You're looking for something more generic: HTMLMediaElement, here are some reference guides:

https://developer.mozilla.org/en/DOM/HTMLMediaElement

http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#audio

https://developer.apple.com/documentation/webkitjs/htmlmediaelement


For Mozilla Firefox's implementation (Gecko), see the following in the Mozilla Development Center:

  • https://developer.mozilla.org/En/HTML/Element/Audio
  • https://developer.mozilla.org/en/DOM/HTMLAudioElement
  • https://developer.mozilla.org/en/Introducing_the_Audio_API_Extension

For Internet Explorer 9 (currently beta), see the following at MSDN:

  • http://msdn.microsoft.com/en-us/library/ff975061.aspx


http://dev.w3.org/html5/spec-author-view/video.html#audio (large document)

The play/pause methods can be found here: http://dev.w3.org/html5/spec-author-view/video.html#media-element

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜