-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of contradictory hints #276
Comments
My concerns:
E.g. I would prefer a mint on my pillow, but don't cancel my scuba diving trip over it. Since preferences are optional to implement, behavior should match that of non-implementing browsers. E.g.
...should act the same as
Since systemAudio is a sub-option "for monitor display surfaces." there's no logical conflict. I want zero apples, all green.
Since "The user agent MAY use the presence of the displaySurface constraint and its value to influence the presentation" there's no logical conflict. Monitor types will be excluded IF this browser supports it, and put up front if not and that is supported. Not every combination needs to be useful as long as it's deterministic. |
This issue had an associated resolution in WebRTC December 12 2023 meeting – 12 December 2023 (Issue #276: Handling of contradictory hints):
|
This issue would only affect the user agents that did implement the spec. Those that don't - like the current versions of Safari and Firefox - won't be adversely affected.
Would you prefer it if we used
If the UA does not warn developers when they provide self-contradictory sets of preferences, the behavior the UA exhibits will be surprising to some of them. And note that users will be impacted too when developers fail to correct their programs to exhibit scenario-appropriate behaviors.
In theory, about the future, maybe.
One of my kids is 3 years old. If I gave him a bag with "zero candy, all of your favorite type," he would be upset. Given his age, I would even add "rightfully upset" - why would I mislead him like that? And this applies to developers too. Bugs happen when constraints+options are programmatically set. It's better to fail loudly than silently.
It's more deterministic across browsers and browser versions if we specify what happens. |
It is possible for applications to supply contradictory hints when invoking
getDisplayMedia()
. For example:I think any of these is indicative of a logical error in the Web application, and had better be handled by rejecting the gDM call.
Wdyt?
The text was updated successfully, but these errors were encountered: