W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > February 2021

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

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Sat, 27 Feb 2021 20:05:05 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-787127906-1614456304-sysbot+gh@w3.org>
> I know users can change default devices from OS UI. Is Firefox (or any browser) providing such camera configuration UI?

Well, we have the camera and microphone picker in the Firefox permission prompt. 🙂 But even without that, all major browsers respect OS defaults, which are often user configurable. E.g. going to _Audio MIDI Setup_ and choosing my Logitech BRIO makes it the default microphone on macOS _and_ Firefox, and now `{audio: true}` gives you channelCount 2 instead of 1.

I also could have sworn an earlier version of Audio MIDI Setup let me change the `2 ch` to `1 ch`, but I might be misremembering there, or it did with a different device I no longer own. I believe other OSes allow this though.

This means there is no one default channelCount. _That's what we should document._ If your app assumes there is, then your app is broken. This is why we have constraints and not a simpler settings API: if an app requires mono to not break, constrain it to mono. The model is: if you care about it, constrain it. Otherwise you get what you get.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 27 February 2021 20:05:06 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:53 UTC