[mediacapture-screen-share] Spec appears to require gDM leak info on availability of audio (#233)

eladalon1983 has just created a new issue for https://github.com/w3c/mediacapture-screen-share:

== Spec appears to require gDM leak info on availability of audio ==
The spec says as follows:
> 6. Let requestedMediaTypes be the set of media types in constraints with either a dictionary value or a value of true.

...

> 9. Run the following steps in parallel:
>    1. For each media type T in requestedMediaTypes,
>       1. If no sources of type T are available, [reject](https://webidl.spec.whatwg.org/#reject) p with a new [DOMException](https://webidl.spec.whatwg.org/#idl-DOMException) object whose [name](https://webidl.spec.whatwg.org/#dom-domexception-name) attribute has the value [NotFoundError](https://webidl.spec.whatwg.org/#notfounderror).
>        2. ...
>        3. [Prompt the user to choose](https://www.w3.org/TR/permissions/#dfn-prompt-the-user-to-choose) a display device

This appears to require that if audio is requested by the application, and is not available for the user agent to share, then gDM should reject. (Note that this is done before prompting the user. It's not about what the user ultimately chooses.)

Presumably this was added for the perverse case of gDM called on a device with no attached screen and no visible screens, and where tab-capture was not yet supported?

Thanks @shangl for alerting me to this.

Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/233 using your GitHub account


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

Received on Friday, 16 September 2022 16:25:47 UTC