Re: [mediacapture-screen-share] Avoid user-confusion by not offering undesired audio sources (#219)

Expectedly, some Web applications (Meet) are now asking for the ability to exclude both window- and system-audio, and only prompt the user for tab-audio (alongside video, of course). I think it's always good for browsers to get out of the applications' way when they wish to ask for **less** permissions, so I propose we follow suit on [systemAudio](https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamoptions-systemaudio) `"include"/"exclude"` and introduce `windowAudio` as `"include"/"exclude"` too.

Namely:

```
enum WindowAudioPreferenceEnum {
  "include",
  "exclude"
};

dictionary DisplayMediaStreamConstraints {
  WindowAudioPreferenceEnum windowAudio;
};
```

And text saying that `{windowAudio: "exclude", systemAudio: "include"}` is illegal and results in rejection, in order to prevent users being nudged towards sharing their entire screen.

Wdys?

-- 
GitHub Notification of comment by eladalon1983
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/219#issuecomment-1801782459 using your GitHub account


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

Received on Wednesday, 8 November 2023 12:21:34 UTC