Adding background filters to your application - Amazon Chime SDK

Adding background filters to your application

The process of adding background filters follows these broad steps:

  • Check for supported browsers.

  • Create a VideoFxConfig object with the configuration you want to use.

  • Use the configuration object to create a VideoFxProcessor object.

  • Include the VideoFxProcessor object in a VideoTransformDevice .

  • Use the VideoTransformDevice to start the video input.

Note

To complete those steps, you must first:

  • Create a Logger.

  • Choose a video device of class MediaDeviceInfo.

  • Successfully join a MeetingSession.

Steps in the following sections explain how to complete the process.

Starting video input

The following example shows how to use the VideoTransformDevice object to start video input.

// assuming that meetingSession has already been created await meetingSession.audioVideo.startVideoInput(videoTransformDevice); meetingSession.audioVideo.start(); meetingSession.audioVideo.startLocalVideoTile();