# Zoom Video SDK always runs in non-sab mode

**URL:** <https://devforum.zoom.us/t/zoom-video-sdk-always-runs-in-non-sab-mode/86029>\
**Category:** Web\
**Created:** [April 4, 2023, 1:14pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-always-runs-in-non-sab-mode/86029 "2023-04-04T13:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danish-Mentorange](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@Danish-Mentorange](https://devforum.zoom.us/u/Danish-Mentorange)\
**Post date:** [April 4, 2023, 1:14pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-always-runs-in-non-sab-mode/86029/1 "2023-04-04T13:14:33Z")

</div>

**Description**  
We have taken the code from this sample: [GitHub - zoom/videosdk-web-sample: Zoom Video SDK web sample](https://github.com/zoom/videosdk-web-sample) and tried to implement it on our web app but it always loads non-sab version. When I run the sample code locally it runs the sab version. Not sure what are we missing and how does it distinguishes which version to run.

**Which Web Video SDK version?**  
1.6.2

**Video SDK Code Snippets**

```auto
setIsSupportGalleryView(stream.isSupportMultipleVideos() && !isAndroidBrowser());
...
...
<ZoomMediaContext.Provider value={mediaContext}>
    {isSupportGalleryView ? <VideoContainer /> : <VideoContainerNonSab />}
</ZoomMediaContext.Provider>

```

The `isSupportGalleryView` shows as true but still `<VideoContainerNonSab />` component gets loaded

**Device (please complete the following information):**

- Device: Windows
- OS: 11
- Browser: Chrome

**Additional context**  
The sample code when run under similar conditions executes the sab version of the component.

---

<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:** [April 6, 2023, 1:56am UTC](https://devforum.zoom.us/t/zoom-video-sdk-always-runs-in-non-sab-mode/86029/2 "2023-04-06T01:56:54Z")

</div>

Hey @Danish-Mentorange

Thanks for your feedback.

To enable `SharedArrayBuffer` on your site, you can refer to this guide. [https://developers.zoom.us/docs/video-sdk/web/gallery-view/](https://developers.zoom.us/docs/video-sdk/web/gallery-view/) .

Our sample app already has these configurations set by default, so when running the app on local env. it uses the SharedArrayBuffer 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:** [May 6, 2023, 11:57am UTC](https://devforum.zoom.us/t/zoom-video-sdk-always-runs-in-non-sab-mode/86029/3 "2023-05-06T11:57:15Z")

</div>

Closed on May 6, 2023, 11:57am UTC

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