Background image URL, or a ready HTMLImageElement / HTMLCanvasElement.
Pass null to segment the person onto a transparent background.
OptionalframeCapture frame rate for the processed stream. Defaults to 30.
OptionalmodelMediaPipe model: 0 = general, 1 = landscape (faster). Defaults to 1.
OptionalpublishReplace the live producer's track so remote viewers see the background immediately. Defaults to true; set false to preview locally first.
OptionalassetWhere to load the MediaPipe model and wasm from. Defaults to the jsDelivr
CDN. Point this at a self-hosted copy of
node_modules/@mediapipe/selfie_segmentation for offline or air-gapped
deployments, or where a Content-Security-Policy forbids the CDN.
A trailing slash is added if missing.
OptionalblurBlur the area behind the segmented person by this many pixels. When this
is greater than zero it takes precedence over image. Defaults to 0.
OptionalkeepBest-effort hidden-tab processing for blur and image backgrounds. Defaults to true.
The most recent parameter bag from
updateSourceParameters.