Closed Bug 1935371 Opened 1 year ago Closed 1 year ago

enumerateDevices() gives an empty list even if cam/mic permissions are allowed

Categories

(Core :: WebRTC: Audio/Video, defect)

Firefox 132
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: demonadok, Unassigned)

References

Details

Steps to reproduce:

  1. allow cam/mic permissions via getUserMedia and remember the choice
  2. 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

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.

Component: Untriaged → WebRTC: Audio/Video
Product: Firefox → Core
Summary: enumerateDevices() gives an empty list even if cam/mic permissions allowed → enumerateDevices() gives an empty list even if cam/mic are permissions allowed

Hey Jib, is this expected?

Flags: needinfo?(jib)
Summary: enumerateDevices() gives an empty list even if cam/mic are permissions allowed → enumerateDevices() gives an empty list even if cam/mic permissions are allowed

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.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Flags: needinfo?(jib)
Resolution: --- → INVALID
See Also: → 1916993
You need to log in before you can comment on or make changes to this bug.