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

[mediacapture-screen-share] What is the purpose of MediaTrackCapabilities displaySurface? (#250)

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Tue, 25 Oct 2022 11:52:52 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-1422339532-1666698770-sysbot+gh@w3.org>
beaufortfrancois has just created a new issue for https://github.com/w3c/mediacapture-screen-share:

== What is the purpose of MediaTrackCapabilities displaySurface? ==
Hello folks, the spec currently says `getCapabilities()` should return the current [displaySurface](1) value (either `"monitor"`, `"window"`, or `"browser"`). I'm now wondering what purpose is served by exposing this capability? Is it for simple parity with `getSettings()`? I'd love to understand how web developers could use `if (videoTrack.getCapabilities() === "browser") ...` condition for instance?

Note that it was added in https://github.com/w3c/mediacapture-screen-share/pull/84

Thanks for your time!

[1]: https://w3c.github.io/mediacapture-screen-share/#dom-mediatrackcapabilities-displaysurface 

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 25 October 2022 11:52:54 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:59 UTC