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

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