Open Bug 1696508 Opened 3 years ago Updated 3 years ago

Device selection using channelCount constraint doesn't work in getUserMedia()

Categories

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

defect

Tracking

()

People

(Reporter: jib, Unassigned)

References

Details

We're not picking a stereo microphone from getUserMedia({audio: {channelCount: 2}}).

STRs (ideal):

  1. Make sure default mic is mono (MBP mic), and insert a secondary stereo mic (BRIO)
  2. Open https://jsfiddle.net/jib1/0pcdfmky/ and click Go (and hit Allow in any prompt).

Expected results: stereo (BRIO) mic
Actual results: mono (MBP) mic.

We're also not removing mono mic choices from getUserMedia({audio: {channelCount: {exact: 2}}}).

STRs (exact):

  1. Revoke any persistent permissions and remove stereo mic
  2. open https://jsfiddle.net/jib1/9s8cm0ka/

Expected results: No prompt, and OverconstrainedError: Constraints could be not satisfied.
Actual results: Prompt with all mic choices, followed by OverconstrainedError: Constraints could be not satisfied. only after I hit Allow 😕

No longer blocks: 1696519
See Also: → 1696519

Jan-Ivar, would you mind triaging this? I suspect you have the best handle on the priority/severity here.

Flags: needinfo?(jib)
Severity: -- → S3
Flags: needinfo?(jib)
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.