Skip to content

Commit de1dc83

Browse files
eehakkinchromium-wpt-export-bot
authored andcommitted
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. [1]: https://w3c.github.io/mediacapture-main/#dfn-selectsettings Bug: 1408091 Change-Id: I6b7c4e12ed913917ccfc01796df5f96af5e0bc3f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5625777 Reviewed-by: Rijubrata Bhaumik <[email protected]> Commit-Queue: Eero Hakkinen <[email protected]> Cr-Commit-Position: refs/heads/main@{#1315201}
1 parent bc6796c commit de1dc83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mediacapture-extensions/GUM-backgroundBlur.https.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ <h1 class="instructions">Description</h1>
9090
const [videoTrack] = stream.getVideoTracks();
9191

9292
const capabilities = videoTrack.getCapabilities();
93-
const constraints = {advanced: [{
94-
[property]: constraintSet[property]
95-
}]};
93+
const constraints = {
94+
[property]: {exact: constraintSet[property]}
95+
};
9696
const oldSettings = videoTrack.getSettings();
9797

9898
if (supportedConstraints[property] && !(property in capabilities)) {

0 commit comments

Comments
 (0)