How can I capture the AudioDestinationNode value when headphones are plugged in with Web Audio API?

我是研究僧i 提交于 2019-12-08 02:55:33

There's nothing in the Web Audio API spec for this.

It might be possible in Phonegap (at least if you were willing to write your own Phonegap plugin) – but that's only going to help on mobile. As far as I know, there's no way to determine the audio output device in any of the major desktop browsers.

Just out of curiosity, what are you hoping to do as a result of the user switching between built-in speakers and an external device?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!