demo · v134
Background Blur Status
videoTrack.getSettings().backgroundBlur and the corresponding capability/constraint expose whether the OS-level background blur is active. Click "start camera" — the page reports what the API returns for the live track.
probing MediaStreamTrack capability...
Try it
capability: ?
setting: ?
{}
The code
const stream = await navigator.mediaDevices.getUserMedia({ video: true });
const track = stream.getVideoTracks()[0];
console.log(track.getCapabilities().backgroundBlur); // [true] / [false] / undefined
console.log(track.getSettings().backgroundBlur); // true / false / undefined
see also
- Camera Effects Status: Background Blur — feature index
- ChromeStatus entry
- Spec