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

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

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Tue, 02 Mar 2021 19:36:30 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-789161035-1614713789-sysbot+gh@w3.org>
> > Give us whatever the underlying system gives us for default channel count, frame size, frame rate, etc. The OS knows better than the user agent does.
>
> On one hand I hear that the OS provides meaningful defaults...

@henbos Yes. The OS has a default device with specific capabilities that influence what settings sites get by default:
```js
(await getUserMedia({audio: true})).getAudioTracks()[0].getSettings().channelCount // 1 or 2 ?
```
It seems irrelevant to an app and compat whether 1 or 2 is decided by:
A. which OS device is the user default
B. A user having picked a different device in Firefox's microphone picker, or
C. A linux user reconfiguring properties of the device driver of the device from A or B.

This is all under "user agent", and not the spec. Specs generally shy away from dictating the relationship between the user and their agent.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/775#issuecomment-789161035 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 19:36:32 UTC

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