Web Audio API - 记录所有标签声音

时间:2016-11-26 16:53:09

标签: javascript html5 web-audio

有没有办法使用Audio API或其他方法拦截和录制浏览器标签中发生的所有声音。

我们说我在一个标签中同时观看三个YouTube视频,我可以使用Audio API录制吗?

2 个答案:

答案 0 :(得分:2)

This isn't really directly possible (for security and privacy reasons). As a user, it's possible to set it up - by setting a loopback audio driver as your audio output driver for the YT tabs - but not in a totally automated way.

(This is a duplicate, btw - of Cross application audio analysis with the Web Audio API, et al.)

答案 1 :(得分:0)

您可以使用http://goldfirestudios.com/blog/104/howler.js-Modern-Web-Audio-Javascript-Library此JavaScript库。 此链接具有完整的文档,功能和用法。此库适用于游戏和音频相关的Web应用程序。希望这会对你有所帮助。