enumerateDevices() gives an empty list even if cam/mic permissions are allowed
Categories
(Core :: WebRTC: Audio/Video, defect)
Tracking
()
People
(Reporter: demonadok, Unassigned)
References
Details
Steps to reproduce:
- allow cam/mic permissions via getUserMedia and remember the choice
- reload the page, call enumerateDevices
Actual results:
empty list of devices with "" id-s
Expected results:
deviceId-s should be presented after granting cam/mic permissions and calling enumerateDevices
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::WebRTC: Audio/Video' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Reporter | ||
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
Comment 3•1 year ago
|
||
This is to spec.
The spec exposes camera and microphone information on camera/microphone use, not permission. Firefox and Safari follow the spec here, Chrome currently does not (crbug 40138537).
There's a legacy mode available in about:config by setting media.devices.enumerate.legacy.enabled, and a media.devices.enumerate.legacy.allowlist. If you're experiencing issues with specific websites please let us know.
Description
•