Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(virtual-backgrounds) fix error if we failed to load the model

Saúl Ibarra Corretgéa182f53cdcd3
diff --git a/react/features/stream-effects/virtual-background/index.js b/react/features/stream-effects/virtual-background/index.js
index 56bacf20f5..e1de56d52b 100644
--- a/react/features/stream-effects/virtual-background/index.js
+++ b/react/features/stream-effects/virtual-background/index.js
@@ -74,6 +74,12 @@ export async function createVirtualBackgroundEffect(virtualBackground: Object, d
return;
}
+ } else if (isWasmDisabled) {
+ dispatch(showWarningNotification({
+ titleKey: 'virtualBackground.backgroundEffectError'
+ }, NOTIFICATION_TIMEOUT_TYPE.LONG));
+
+ return;
}
const modelBufferOffset = tflite._getModelBufferMemoryOffset();