Desktop getUserMedia permissions prompt ignores optional constraints

NEW
Unassigned

Status

()

3 years ago
3 years ago

People

(Reporter: jib, Unassigned)

Tracking

(Depends on: 1 bug)

Trunk
Points:
---

Firefox Tracking Flags

(firefox44 affected)

Details

STR:
1. On a desktop system with two cameras, open http://jsfiddle.net/79a1v78j/ in Nightly.
2. Hit [Start] and select the second camera in the doorhanger.
3. Refresh page.
4. Hit [Start] again.

Expected result:
- The doorhanger defaults to the first camera.

Actual result:
- The doorhanger defaults to the second camera.

According to Bug 989094 comment 3, desktop implements (by accident?) a kind of "last used" default. Unfortunately, this ignores optional constraints from the web-site.

Optional constraints are things a website would like to have considered, but can live without in the camera chosen. Unless the user explicitly chooses something else, we should satisfy the optional constraints.

It works fine on Android (no "last used" feature there, Bug 989094).

Once Bug 1212501 is fixed, it should be possible to respect optional constraints and attempt "last used" at the same time.
Summary: Desktop WebRTC permissions prompt ignores optional constraints → Desktop getUserMedia permissions prompt ignores optional constraints
You need to log in before you can comment on or make changes to this bug.