- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Wed, 22 Sep 2021 13:06:02 +0000
- To: public-webrtc-logs@w3.org
> @youennf voiced a preference to use something other than constraint. `getDisplayMedia` already uses a simplified version of constraints (it [throws TypeError on `advanced`, `min`, or `exact`](https://w3c.github.io/mediacapture-screen-share/#dom-mediadevices-getdisplaymedia)), so why not use it? If the [displaySurface](https://w3c.github.io/mediacapture-screen-share/#dfn-displaysurface) constraint wasn't already defined then perhaps a different API might have value. But since it does, respecting it on input seems like the obvious choice here. Just throw `TypeError` on ["monitor"](https://w3c.github.io/mediacapture-screen-share/#idl-def-DisplayCaptureSurfaceType.monitor). > Unless we use a mechanism other than constraints, we will only allow `ideal` constraints for displaySurface. Agreed? Yes, it's already the case today that `exact` throws `TypeError`. Though note the technical term is [optional-basic-constraints](https://w3c.github.io/mediacapture-main/getusermedia.html#dfn-optional-basic-constraints), and the literal "`ideal`" keyword is superfluous in practice (plain values are already ideal). > ### 3. Warning for self-capture > > @jan-ivar expressed a strongly held belief that we must specify that the user agent MUST warn the user about self-capture. I am fine with that. Shall we jump on that? > > I suggest adding this line to the spec, in a general place, and not specific to display-surface-type-influencing: > > ``` > The user agent MUST strongly warn the user about the dangers of self-capture. > ``` Personally I'd like that, but with my chair hat on I'd say we'd have trouble enforcing a normative MUST on UX. How would we test "strongly"? This is why I wanted to forbid self-capture outright, something we _could_ test for (e.g. "MUST NOT return the document's viewport.") -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/184#issuecomment-924911259 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 22 September 2021 13:06:04 UTC