- From: François Beaufort via GitHub <sysbot+gh@w3.org>
- Date: Fri, 24 Jul 2020 07:50:37 +0000
- To: public-webrtc-logs@w3.org
beaufortfrancois has just submitted a new pull request for https://github.com/w3c/mediacapture-image: == Change MediaSettingsRange & PhotoCapabilities interfaces to dictionaries == Following [blink-dev discussion](https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/AqKdWOB7O8c), it seems preferable to have `MediaSettingsRange` & `PhotoCapabilities` interfaces defined as dictionaries instead of [adding toJSON() to MediaSettingsRange](https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fw3c%2Fmediacapture-image%2Fpull%2F234&sa=D&sntz=1&usg=AFQjCNHZaDQWtbUHm5XJWTotUdkjUiN6cg). This PR changes `MediaSettingsRange` & `PhotoCapabilities` interfaces to dictionaries, and therefore removes specific `toJSON()` from `MediaSettingsRange`. With this change, `JSON.stringify(myTrack.getCapabilities())` and `JSON.stringify(await myImageCapture.getPhotoCapabilities())` will continue to help web developers interested in easily logging and aggregating media capture images properties. See https://github.com/w3c/mediacapture-image/pull/238
Received on Friday, 24 July 2020 07:50:39 UTC