Skip to main content

VideoProcessor

Properties

PropertyModifierTypeDescription
statusreadonly| "closed" | "closing" | "Error" | "destroyed" | "destroying" | "idle" | "new" | "opened" | "opening" | "processing" | "updated" | "updating"-
processpublic(source) => Promise<MediaStreamTrack>Process the video and return a MediaStream
destroypublic() => Promise<void>Destroy the segmentation wasm instance
renderOptionsreadonlyRendererOptionsCurrent renderer options
processingWidthreadonlynumberCurrent processing width
processingHeightreadonlynumberCurrent processing height

Methods

open()

open(options?): Promise<void>;

Initialize the video processor and related

Parameters

ParameterType
options?ProcessorUpdateOptions

Returns

Promise<void>


update()

update(options): Promise<void>;

Update the video processor with provided options

Parameters

ParameterType
optionsProcessorUpdateOptions

Returns

Promise<void>


mute()

mute(muted): void;

Parameters

ParameterType
mutedboolean

Returns

void


close()

close(): Promise<void>;

Stop the process of video segmentation

Returns

Promise<void>