w3c / mediacapture-extensions

Extensions to Media Capture and Streams by the WebRTC Working Group
https://w3c.github.io/mediacapture-extensions/
Other
19 stars 14 forks source link

Design pattern for constraints with system-level UI? #75

Open alvestrand opened 1 year ago

alvestrand commented 1 year ago

The discussion around adding backgroundBlur to the spec uncovered a pattern that I think we may see more often.

With backgroundBlur, we handled this by saying:

That way, an app can detect whether the function is on or off, and whether it can change it or not.

It might be worth pulling out this pattern as a documented pattern, so that other features that behave like this can refer to it instead of re-explaining it for every constraint. (I note that the description in the spec for backgroundBlur doesn't go into details on this pattern either. Might be worth improving.)

Thoughts?