- From: Elad Alon via GitHub <sysbot+gh@w3.org>
- Date: Fri, 01 Sep 2023 10:07:51 +0000
- To: public-webrtc@w3.org
eladalon1983 has just created a new issue for https://github.com/w3c/mediacapture-screen-share:
== Handling of contradictory hints ==
It is possible for applications to supply contradictory hints when invoking `getDisplayMedia()`. For example:
```js
// 1.
// Audio generally not requested, but system-audio marked as desired.
navigator.mediaDevices.getDisplayMedia({
audio: false,
systemAudio: "include",
});
// 2.
// Audio requested, including an explicit request for system-audio,
// but monitors asked to be excluded. (Monitors are the surface type
// associated with system-audio.)
navigator.mediaDevices.getDisplayMedia({
audio: true,
systemAudio: "include",
monitorTypeSurfaces: "exclude"
});
// 3.
// Application requestd monitors to be displayed most prominently,
// while simultaneously asking for monitors to not be offered.
navigator.mediaDevices.getDisplayMedia({
video: {
displaySurface: "monitor"
},
monitorTypeSurfaces: "exclude"
});
```
I think any of these is indicative of a logical error in the Web application, and had better be handled by rejecting the gDM call.
Wdyt?
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/276 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 1 September 2023 10:07:53 UTC