替代 Web 音频 API [英] Alternate for Web Audio API

查看:25
本文介绍了替代 Web 音频 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 Web Audio API 的 Web 程序.这里的问题是我想让它与 IE 兼容.Web Audio API 是否有任何替代方案,以便我可以专门在 IE 上运行相同的代码?

I have a web program which makes use of Web Audio API. The issue here is that i want to make it compatible for IE. Is there any alternate for the Web Audio API, so that i can make the same code run on IE specifically?

推荐答案

您的需求是什么?如果您需要进行动态合成、音频路由等,您将只能通过 Web Audio API 来实现,因此您的 IE 用户很不走运.

What are your needs? If you need to do dynamic synthesis, audio routing, etc, you will only be able to achieve that with the Web Audio API, so your IE users are out of luck.

但是,如果您只需要播放音频文件,那么我建议您使用 howler.js.Howler 对不同浏览器和操作系统具有很好的兼容性,包括各种版本的 IE.

However, if all you need to do is play audio files, then I would recommend that you use howler.js. Howler has great compatibility across different browsers and operating systems, including various versions of IE.

这篇关于替代 Web 音频 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆