简体   繁体   English

音频与AudioContext

[英]Audio vs AudioContext

If I would need to use and audio API in HTML5 right now, which one should I use? 如果我现在需要在HTML5中使用和音频API,我应该使用哪一个? I see two APIs available: Audio API and Web Audio API. 我看到两个可用的API:Audio API和Web Audio API。

Based on this documentation from MDN , the Audio API seems to be deprecated, is that correct? 基于MDN的这个文档 ,Audio API似乎已被弃用,这是正确的吗? Is it deprecated only in Firefox and Chrome? 它仅在Firefox和Chrome中被弃用吗?

What happens with Internet Explorer? Internet Explorer会发生什么?

More info about Web Audio API: 有关Web Audio API的更多信息:

http://webaudio.github.io/web-audio-api/ http://webaudio.github.io/web-audio-api/

https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API

For playing audio from computed samples I think AudioContext.createBuffer() is great. 为了从计算样本中播放音频,我认为AudioContext.createBuffer()很棒。 No support in IE 11 but in Edge and the others. 在IE 11中没有支持,但在Edge和其他人中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM