Chrome enumerateDevices returns all devices

19 views
Skip to first unread message

Martin Nyström

unread,
Oct 10, 2025, 7:57:41 AM (24 hours ago) Oct 10
to discuss-webrtc
Is this intended behaviour that the Navigator enumerateDevices returns all devices? It appears to completely ignore the permission selection.

The behaviour in Firefox is that it only returns the devices that has been allowed in this dialogue box, and if you attempt to set a new device this popup will resurface requiring user interaction.


Screenshot 2025-10-10 at 12.59.58.png

/M

Philipp Hancke

unread,
Oct 10, 2025, 7:58:54 AM (24 hours ago) Oct 10
to discuss...@googlegroups.com
It is, enumerateDevices allows you to build your own selection dialog.

--
This list falls under the WebRTC Code of Conduct - https://webrtc.org/support/code-of-conduct.
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/discuss-webrtc/8dc9e9f4-0997-4090-900d-28b20aea7d5fn%40googlegroups.com.

Martin Nyström

unread,
Oct 10, 2025, 8:20:48 AM (23 hours ago) Oct 10
to discuss-webrtc
Thanks Philipp,

At least then we know it is intended. However, I am lost of the purpose of the device selection in the permissions popup. Because if I select Arctis 7+ as my input device in the permission pop-up, I can still use my built in MacOS microphone without having giving it permissions.  We just trying to figure out how to navigate in this topic.

/M


On Friday, 10 October 2025 at 13:58:54 UTC+2 Philipp Hancke wrote:
It is, enumerateDevices allows you to build your own selection dialog.

Am Fr., 10. Okt. 2025 um 13:57 Uhr schrieb
Is this intended behaviour that the Navigator enumerateDevices returns all devices? It appears to completely ignore the permission selection.

The behaviour in Firefox is that it only returns the devices that has been allowed in this dialogue box, and if you attempt to set a new device this popup will resurface requiring user interaction.


Screenshot 2025-10-10 at 12.59.58.png

/M

Philipp Hancke

unread,
Oct 10, 2025, 10:09:58 AM (21 hours ago) Oct 10
to discuss...@googlegroups.com
Historical reasons -- the in-browser device selection is fairly new and only launched recently - with a lot of confusion since this did not let you select the device with an "ideal" deviceId constraint.

enumerateDevices has been the application choice for a decade roughly,
is still a fairly good sample how to use it (but lacks things like the devicechange event)

Browsers have always been opinionated in that area so behavior differs.

Reply all
Reply to author
Forward
0 new messages