# SharedArrayBuffer support in sample Purejs-demo vs Reactjs-demo

**URL:** <https://devforum.zoom.us/t/sharedarraybuffer-support-in-sample-purejs-demo-vs-reactjs-demo/62135>\
**Category:** Web\
**Created:** [January 3, 2022, 4:32pm UTC](https://devforum.zoom.us/t/sharedarraybuffer-support-in-sample-purejs-demo-vs-reactjs-demo/62135 "2022-01-03T16:32:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![efron.vit](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/efron.vit/32/33711_2.png) [@efron.vit](https://devforum.zoom.us/u/efron.vit)\
**Post date:** [January 3, 2022, 4:32pm UTC](https://devforum.zoom.us/t/sharedarraybuffer-support-in-sample-purejs-demo-vs-reactjs-demo/62135/1 "2022-01-03T16:32:20Z")

</div>

**Description**  
When running a sample on pure js, an error occurs, but when running a sample from the same archive on React js, there is no such problem. Everything runs in the same browser.

I ran two samples (pure and react) and connected them to one meeting

**Browser Console Error**

> button-click-handlers.js:84 Error toggling video {type: ‘INVALID\_PARAMETERS’, reason: ‘You must pass a element to start video cap…er, and Chrome without SharedArrayBuffer support.’}  
> reason: “You must pass a element to start video capture for Chromium browser, Android  
> browser, and Chrome without SharedArrayBuffer support.”  
> type: “INVALID\_PARAMETERS”

**Which Web Video SDK version?**  
1.1.7

**Video SDK Code Snippets**

```auto
        try {
          isWebcamOn = !isWebcamOn;
          await (0,_video_video_toggler __WEBPACK_IMPORTED_MODULE_1__.toggleSelfVideo)(mediaStream, isWebcamOn);
          toggleWebcamButtonStyle();
        } catch (e) {
          isWebcamOn = !isWebcamOn;
          console.error('Error toggling video', e);
        }

```

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Run Purejs-demo sample
2. Join to session
3. Click on video-button
4. See error

**Screenshots**  
If applicable, add screenshots to help explain your problem.

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

- OS: [e.g. Windows 10]
- Browser: [e.g. Chrome, Yandex]

---

<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:** [February 3, 2022, 2:33am UTC](https://devforum.zoom.us/t/sharedarraybuffer-support-in-sample-purejs-demo-vs-reactjs-demo/62135/2 "2022-02-03T02:33:03Z")

</div>

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