Skip to content

Commit

Permalink
[MediaCapture Extensions] Fix background segmentation mask constraints
Browse files Browse the repository at this point in the history
This CL fixes background segmentation mask constraints to be passed
to the imagecapture module and adds a web platform test to test
background segmentation mask constraints and settings.

Background segmentation mask feature is behind a flag:
chrome --enable-blink-features=MediaCaptureCameraControls

Intent to Prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/nWEqxi83rus

Spec: w3c/mediacapture-extensions#142

Explainer: https://github.com/riju/backgroundBlur/blob/main/explainer.md#background-segmentation-mask-api

Bug: 349939554
Change-Id: I1c11bd8919272147ed28f699a38dd8922cefc4c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5783519
Reviewed-by: Rijubrata Bhaumik <[email protected]>
Commit-Queue: Eero Hakkinen <[email protected]>
Reviewed-by: Guido Urdaneta <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1341202}
  • Loading branch information
eehakkin authored and chromium-wpt-export-bot committed Aug 13, 2024
1 parent 84ec565 commit cd16d06
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mediacapture-extensions/GUM-backgroundBlur.https.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>Test background blur support</title>
<title>Test background blur and segmentation mask support</title>
<link rel="help" href="https://w3c.github.io/mediacapture-extensions/">
</head>
<body>
<h1 class="instructions">Description</h1>
<p class="instructions">This test checks background blur support.</p>
<p class="instructions">This test checks background blur and segmentation mask support.</p>
<div id='log'></div>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
"use strict";

const constraintSet = {
backgroundBlur: true
backgroundBlur: true,
backgroundSegmentationMask: true,
};

Object.keys(constraintSet).forEach(property => {
Expand Down

0 comments on commit cd16d06

Please sign in to comment.