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

> Seems more like a property of the track than a capability.

It's a constant [constrainable property]( of the source, following [rules established in mediacapture-main](, with precedent in [deviceId](, a constant constrainable property of camera sources, which [show up in capabilities in Chrome and Safari](

Its purpose is to comply with the constrainable pattern, which says all constrainable properties are exposed as capabilities, settings and constraints. It has no utility other than that, that I'm aware of.

> I'd love to understand how web developers could use `if (videoTrack.getCapabilities().displaySurface === "browser")` condition

A better question might be: which members would you expect to find in `videoTrack.getCapabilities()`?

GitHub Notification of comment by jan-ivar
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Tuesday, 25 October 2022 20:25:31 UTC