Re: [mediacapture-main] Pass camera and microphone lists to the exposure decision algorithm (#721)

> This PR imposes a requirement that all cameras come first, then all microphones.

This is the reverse actually that this PR intends: microphone first, then camera, then other devices.
This matches what Chrome and Safari do. Firefox also sorts device per kind but put camera first.

> It will make implementations that return cameras and microphones interleaved non-conformant,

Correct, though browsers I tested are not doing that.
There is a compat risk for user agents to interleave devices.

> will move the default microphone from "one of the two first entries" to "the position after all the cameras".

PR intent is to put default microphone as the first entry (but default camera further away).
No browser I tested implements the current wording of the spec.

> Why?

In general, I think specifying order will make developer's life easier.

We can probably mandate per-device-kind sorting as this seems already supported by implementations.
We need to do something about the default device since no browser implements the spec.

I also hope implementations can agree to a particular kind order (microphone first, camera second).
Firefox point of view is especially useful here since this PR requires a change on their end.

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/pull/721#issuecomment-689408862 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 9 September 2020 08:21:34 UTC