@zoom/videosdk: 1.11.6 - the virtual background doesn’t work on preview
@zoom/videosdk: 1.11.0 - the virtual background works great on preview
Conditions:
enforceVirtualBackground: true
SharedArrayBuffer is disabled
await zmClient.init("en-US", `${window.location.origin}/lib`, {
webEndpoint: window?.webEndpoint ?? "zoom.us",
stayAwake: true,
patchJsMedia: true,
leaveOnPageUnload: true,
enforceVirtualBackground: true,
})
const handlerStartVB = useCallback(async (imageUrl) => {
if (!localVideo || !isStartedVideo) return false;
await localVideo.stop();
await localVideo.start(videoCanvasRef.current, { imageUrl });
return true;
}, [localVideo, isStartedVideo]);
const handlerUpdateVB = useCallback(async (imageUrl) => {
if (!localVideo || !isStartedVideo) return false;
await localVideo.updateVirtualBackground(imageUrl);
return true;
}, [localVideo, isStartedVideo]);
The support team’s help is needed here