VideoProcessor
Properties
| Property | Type | Description |
|---|---|---|
destroy | () => Promise<void> | Destroy the segmentation wasm instance |
process | (source) => Promise<MediaStream> | Process the video and return a MediaStream |
Methods
close()
close(): void;
Stop the process of video segmentation
Returns
void
open()
open(options?): Promise<void>;
Parameters
| Parameter | Type |
|---|---|
options? | ProcessorOptions |
Returns
Promise<void>