Class: BackgroundTransformer
Constructors
constructor
• new BackgroundTransformer()
Methods
init
▸ init(id
, config
): Promise
<void
>
Parameters
Name | Type |
---|---|
id | string |
config | BackgroundOptions |
Returns
Promise
<void
>
transform
▸ Optional
transform(frame
, controller
): Promise
<void
>
Parameters
Name | Type |
---|---|
frame | VideoFrame |
controller | TransformStreamDefaultController <any > |
Returns
Promise
<void
>
setBackgroundOptions
▸ setBackgroundOptions(options
): Promise
<void
>
Parameters
Name | Type |
---|---|
options | BackgroundOptions |
Returns
Promise
<void
>
setVideoBGReadable
▸ setVideoBGReadable(stream
): Promise
<void
>
Parameters
Name | Type |
---|---|
stream | ReadableStream <any > |
Returns
Promise
<void
>
setVirtualBGImage
▸ setVirtualBGImage(image
): Promise
<void
>
Parameters
Name | Type |
---|---|
image | ImageBitmap |
Returns
Promise
<void
>
setFlickeringOptions
▸ setFlickeringOptions(options
): void
Parameters
Name | Type |
---|---|
options | FlickeringOptions |
Returns
void
profile
▸ profile(duration
): Promise
<ResolvedWebglQuery
[]>
Parameters
Name | Type |
---|---|
duration | number |
Returns
Promise
<ResolvedWebglQuery
[]>
getTransformerType
▸ getTransformerType(): string
Returns
string
enable
▸ enable(): void
Returns
void
disable
▸ disable(): void
Returns
void