From 1ac29f222c0b4211b357022be95ca9daf5c320ec Mon Sep 17 00:00:00 2001 From: Hannes Date: Mon, 16 Dec 2024 10:13:00 +0100 Subject: [PATCH] Update iframe-functions.md New function see, https://github.com/jitsi/jitsi-meet/pull/15324 --- docs/dev-guide/iframe-functions.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/dev-guide/iframe-functions.md b/docs/dev-guide/iframe-functions.md index cc1525613..108719bb3 100644 --- a/docs/dev-guide/iframe-functions.md +++ b/docs/dev-guide/iframe-functions.md @@ -301,6 +301,18 @@ Sets the video input device to the one with the passed label or ID. api.setVideoInputDevice(deviceLabel, deviceId); ``` +### setVirtualBackground + +Set your virtual background with a base64 image. + +```javascript +/** + * @param {boolean} enabled - Enable or disable the virtual background. + * @param {string} backgroundImage - Base64 image string, eg. "data:image/png;base64, iVBOR...". + */ +api.setVirtualBackground(enabled, backgroundImage); +``` + ### startRecording Starts a file recording or streaming session. See the `startRecording` command for more details.