VirtualBackgroundOptions: { imageData: ImageData; blur?: false; fileUrl?: string } | { fileUrl: string; blur?: false; imageData?: ImageData } | { blur: true; fileUrl?: string; imageData?: ImageData }

At least one param is required. blur: true supersedes imageData or fileUrl params

blur blur user's native background. Using blur: true will trigger a user-facing pop-up confirmation dialog in the client to let the user allow or deny the action. The function will either be executed if allowed, or the app will receive an error with code 10017 if denied. Best practice is to show the corresponding error message.

imageData limited to 15MB after encoding

fileUrl URL of the virtual background image. Ignored if blur is true

See

https://developer.mozilla.org/en-US/docs/Web/API/ImageData|imageData

Generated using TypeDoc