Creating a VideoFxConfig object for the Amazon Chime SDK
You can define configurations for backgroundBlur and
backgroundReplacement in the same object. However, you can't set
isEnabled to true for both filters at the same time. That's an
invalid configuration.
The VideoFxConfig class does no validation of its own. Validation occurs in
the next step.
The following example shows a valid VideoFxConfig.
const videoFxConfig: VideoFxConfig = { backgroundBlur: { isEnabled:false, strength: 'medium' }, backgroundReplacement: { isEnabled:false, backgroundImageURL: 'space.jpg', defaultColor:undefined, } }
The following tables list the VideoFxProcessor properties that you can
specify in the VideoFxConfig object.
Background blur filter properties
Property |
Type |
Description |
|---|---|---|
|
|
When |
|
|
Determines the extent of blurring. Valid values: |
Background replacement filter properties
Property |
Type |
Description |
|---|---|---|
|
|
When |
|
|
The URL of the background image. The filter resizes the image dynamically to
the dimensions of the current screen. You can use a string such as
|
|
|
A hex color string such as |