forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use required Image Capture constraints to overconstrain
Advanced constraints sets passed to the MediaStreamTrack applyConstraints method should either be applied or discarded (SelectSettings algorithm[1] step 5.2). They should never cause an OverconstrainedError to be thrown. This CL fixed Image Capture tests to use required constraints (such as videoTrack.applyConstraints({brightness: {exact: 3}}) ) instead of advanced constrained (such as videoTrack.applyConstraints({advanced: [{brightness: 3}]}) ) to throw an OverconstrainedError. [1]: https://w3c.github.io/mediacapture-main/#dfn-selectsettings Previously Chrome did not support required Image Capture constraints and does treat advanced Image Capture constraints in the first advanced constraint set as if they were required. Therefore Image Capture test were written using advanced constraints instead of using required constraints. This CL fixes that. Bug: 1408091 Change-Id: Ib23348c81ec73fd8f2594baabf3433cfefadcd06 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4651034 Commit-Queue: Eero Hakkinen <[email protected]> Reviewed-by: Rijubrata Bhaumik <[email protected]> Cr-Commit-Position: refs/heads/main@{#1163773}
- Loading branch information
1 parent
3d67ca9
commit dcd3bae
Showing
4 changed files
with
91 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters