# The virtual background doesn't work on preview (@zoom/videosdk: 1.11.6)

**URL:** <https://devforum.zoom.us/t/the-virtual-background-doesnt-work-on-preview-zoom-videosdk-1-11-6/111215>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [June 3, 2024, 4:55pm UTC](https://devforum.zoom.us/t/the-virtual-background-doesnt-work-on-preview-zoom-videosdk-1-11-6/111215 "2024-06-03T16:55:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergey77](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sergey77/32/50255_2.png) [@sergey77](https://devforum.zoom.us/u/sergey77)\
**Post date:** [June 3, 2024, 4:55pm UTC](https://devforum.zoom.us/t/the-virtual-background-doesnt-work-on-preview-zoom-videosdk-1-11-6/111215/1 "2024-06-03T16:55:32Z")

</div>

@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:

```auto
enforceVirtualBackground: true 
SharedArrayBuffer is disabled 

```

```auto
await zmClient.init("en-US", `${window.location.origin}/lib`, {
   webEndpoint: window?.webEndpoint ?? "zoom.us",
   stayAwake: true,
   patchJsMedia: true,
   leaveOnPageUnload: true,
   enforceVirtualBackground: true,
})

```

```auto
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

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [June 5, 2024, 2:42am UTC](https://devforum.zoom.us/t/the-virtual-background-doesnt-work-on-preview-zoom-videosdk-1-11-6/111215/2 "2024-06-05T02:42:13Z")

</div>

Hey @sergey77

Thanks for your feedback.

We have found the issue and will fix it in the next version.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 5, 2024, 12:43pm UTC](https://devforum.zoom.us/t/the-virtual-background-doesnt-work-on-preview-zoom-videosdk-1-11-6/111215/3 "2024-07-05T12:43:06Z")

</div>

Closed on July 5, 2024, 12:43pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
