Re: [mediacapture-main] what is the default channelCount (#775)

> Is Firefox deciding to use channelCount = 2 if device allows it, like {channelCount: 2}?
Or is it that Firefox is using whatever the OS default os, like {channelCount: 'default'}?

@youennf I'm not aware of a cross-device "OS default". Seems per device on mac and Windows (didn't try linux). My BRIO appears only settable to 2 (max?) channels, although sampleRate can be changed:

![image](https://user-images.githubusercontent.com/3136226/109572989-29e13f00-7abc-11eb-9d9a-5b46652bd923.png)
I believe Firefox takes the max channels offered by the specific device and caps it at 2, due to [bug 1393401](https://bugzil.la/1393401).

> As I said, I do not think the spec is precise enough for implementors to be able to interop with existing implementations.
I believe this is one criteria to be able to go to REC that the spec is not yet meeting.

The spec is precise, leaving user agents in charge of defining the underlying system's "[platform defaults](https://w3c.github.io/mediacapture-main/getusermedia.html#dom-constrainablepattern-getsettings)".

Platforms vary, and devices vary, so having browsers vary in same-platform + same-device situations, seems more like a healthy reminder for apps not to assume every system and device will be the same, than a bug. User agents are allowed their own interpretation of a platform and its devices (e.g. a privacy-focused browser may offer a limited and unrecognizable view). So I think I'm rejecting your definition of "interop" here being that every browser must represent the underlying system's resources the same way.

Constraints are precise and interoperable, whether applying specific settings or min/max ranges around the underlying system's defaults.

> Are you ok with the spec describing where browsers do use the same defaults?

No. I share @bradisbell's concerns that we may have been short-sighted in our clamping of default platform capabilities to accommodate one particular sink (RTCPeerConnection), and that we shouldn't cement them in the spec.

> Are you ok with the idea to converge on the same defaults for browsers? Or at least to flag where implementations may defer?

No, I don't see the interop problem you're solving.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/775#issuecomment-788556925 using your GitHub account


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

Received on Tuesday, 2 March 2021 03:44:04 UTC