W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > October 2018

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

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Wed, 24 Oct 2018 07:34:00 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-373343425-1540366431-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:07 UTC