configureVirtualBackground()
configureVirtualBackground(options: VirtualBackgroundOptions)
Enables or modifies (if already enabled) the virtual background for local user with given options. Either blur
, image
or imageUrl
field needs to be specified.
For a video background you must specify both videoUrl
and thumbnailUrl
. The thumbnailUrl
is the preview image in the virtual background selector.
We don't post-process or modify the video background file. You must ensure you provide a reasonable sized video background (e.g. a few MBs at most).
The enforce param is optional and if set to true, then it will make it impossible for the local user to manually change the virtual background once entered inside the room.
Possible predefined values for image are: "office", "office2", "beach", "fireworks", "bookshelf", "forest", "mountain", "savannah"
Sample use cases:
You may want to control virtual background for the local user dynamically during the meeting.
Last updated