Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Apr 18, 2024

Backport of PR #12151

The lists of preferences are used to select the default input devices
when none was selected yet, so they need to be populated first.
Otherwise the first time that the devices are updated the lists will be
empty, so no default device would be set.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
When no permissions were given yet a single device of each kind with an
empty deviceId may be returned (it is in the MediaDevices spec, but
implemented by Chromium and not by Firefox yet). Those devices are not
registered in the preference lists, so the lists are empty and no
default devices are set. Indirectly this causes that no media is
requested by the media settings dialog, so no permissions are asked for
and thus the list is not updated with the real devices either.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@danxuliu danxuliu merged commit 2053eed into stable29 Apr 18, 2024
@danxuliu danxuliu deleted the backport/12151/stable29 branch April 18, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants