- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Wed, 28 Nov 2018 05:08:47 +0000
- To: public-webrtc-logs@w3.org
> Such arguments are always considered to have a default value of an empty dictionary To clarify what I think @foolip is saying—because I tripped over it—an *"empty dictionary"* here isn't actually empty, but populated with its default values, which means all the following calls are indistinguishable: ```js getDisplayMedia() getDisplayMedia({}) getDisplayMedia({video: false}) getDisplayMedia({audio: false}) getDisplayMedia({video: false, audio: false}) // <-- what implementation prose sees ``` Having our prose interpret all of these as {video: true}` would be confusing. I agree with others here that we should let `getDisplayMedia` fail here instead. -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/65#issuecomment-442321703 using your GitHub account
Received on Wednesday, 28 November 2018 05:08:56 UTC