[mediacapture-screen-share] getDisplayMedia({video:false}) is interpreted as getDisplayMedia({video:true})

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

== getDisplayMedia({video:false}) is interpreted as getDisplayMedia({video:true}) ==
> 3. Let requestedMediaTypes be the set of media types in constraints with either a dictionary value or a value of true.
> 4. If requestedMediaTypes is the empty set, set requestedMediaTypes to a set containing "video".

The spec does not distinguish the case of "no value" from "false". Because 3) results in an empty set, 4) turns this empty set into the same as "video:true". I don't think this is intentional, let's fix.

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

Received on Wednesday, 24 October 2018 07:34:01 UTC