Skip to content

Commit

Permalink
Bug 1912929 [wpt PR 47585] - [MediaCapture Extensions] Fix background…
Browse files Browse the repository at this point in the history
… segmentation mask constraints, a=testonly

Automatic update from web-platform-tests
[MediaCapture Extensions] Fix background segmentation mask constraints

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}

--

wpt-commits: 732899be1aa3e1efcb01cab15852eb4c05bfe9b5
wpt-pr: 47585
  • Loading branch information
eehakkin authored and moz-wptsync-bot committed Aug 16, 2024
1 parent ff94548 commit dbe3e99
Showing 1 changed file with 4 additions and 3 deletions.
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 dbe3e99

Please sign in to comment.