Uncaught ReferenceError: SharedArrayBuffer is not defined

When I’m using the video sdk sample and video-non-sab is active and i’m trying to share,
I get the following exception:

Uncaught ReferenceError: SharedArrayBuffer is not defined

how can I fix it?

HI @yakov.yarmo ,

Can you attach and send a screenshot of the error in your console, please?

Best,
Rehema

Hi @yakov.yarmo ,

Thank you for the attachment. What browser/version of the browser(s) are you seeing this issue in, and is it happening in multiple browsers? Additionally, what is triggering this error? Are you attempting to enable gallery view, or show multiple videos, when it occurs?

Thanks,
Rehema

I used the react demo code from:

And in config-overrides I disabled the config.headers to simulate a browser that doesn’t support SharedArrayBuffer.

I’m using chrome Version 114.0.5735.133 (Official Build) (arm64)

Hi @yakov.yarmo ,

I disabled the headers as well and ran the code, but was not able to reproduce your error. If you haven’t already done so, can you go into App.tsx and comment out the current ‘component’ line (~259) and add in ‘component={VideoNONSAB}’ underneath the line that reads 'path=“/video” '. This is to ensure the app is rendering the correct video component and seeing if the error still occurs.

Thanks,
Rehema