Skip to content

Commit a83a0cf

Browse files
committed
Use required constraints instead of advanced ones
1 parent b2854f0 commit a83a0cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,7 @@ <h3>Examples</h3>
603603
// Try to correct lighting.
604604
const videoCapabilities = videoTrack.getCapabilities();
605605
if ((videoCapabilities.lightingCorrection || []).includes(true)) {
606-
await videoTrack.applyConstraints({
607-
advanced: [{lightingCorrection: true}]
608-
});
606+
await videoTrack.applyConstraints({lightingCorrection: {exact: true}});
609607
} else {
610608
// Lighting correction is not supported by the platform or by the camera.
611609
// Consider falling back to some other method.

0 commit comments

Comments
 (0)