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

Thanks for the feedback folks!

> 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.

You're right: [`deviceId`](, [`groupId`](, and [`torch`]( are constant constrainable properties.

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

My naive thoughts were that `getCapabilities()` would return capabilities that allow users to make changes to the constrainable properties via `applyConstraints()`. In other words, that they would be either `max/min` ranges (e.g. `<input type="range"`) or sequences of choices (e.g. `<select>`, `<input type="radio">`).

It looks like I'm wrong according to the spec though.

FYI I've created long time ago to let users play with all properties in a generic way. (works best on mobile)


GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Wednesday, 26 October 2022 08:09:38 UTC