Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

enumerateDevices() still doesn't work

  • 2 个回答
  • 0 人有此问题
  • 92 次查看
  • 最后回复者为 Jamie Taylor

Despite being listed as supported on: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices

enumerateDevices() still only returns input devices. Running navigator.mediaDevices.enumerateDevices().then(devices => console.log(devices)); in the Firefox console only shows input devices while on Chrome it shows output devices.

I use a website that supports playing from multiple output devices so when receiving a phone call, your desktop speakers and your headset can ring at the same time. This works in Chrome but it doesn't in Firefox.

Despite being listed as supported on: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices enumerateDevices() still only returns input devices. Running navigator.mediaDevices.enumerateDevices().then(devices => console.log(devices)); in the Firefox console only shows input devices while on Chrome it shows output devices. I use a website that supports playing from multiple output devices so when receiving a phone call, your desktop speakers and your headset can ring at the same time. This works in Chrome but it doesn't in Firefox.
已附加屏幕截图

所有回复 (2)

Try to test it there -> https://jan-ivar.github.io/dummy/enumerate.html

Click Start both and then Enumerate devices.

I've enabled some extra output devices and reopened both browsers. I've gone to the link and pressed Start Both! and then Enumerate Devices! and I've posted the screenshots below. With Firefox I get the default device and Nvidia Broadcast but on Chrome I get everything.