Occasional Error: [type: "INVALID_PARAMETERS", reason: "Virtual background only compatible with Chrome and Edge with SharedArrayBuffer"

This happen rarely, but when it happened, no mater how many time we retry, it’ll keep returning the same error unless we reload our browser, then the error goes away.

I’m not sure if the error make sense, I’m on
device: macbook air m1
macos sonoma
browser: brave (chromium based) and have SAB enabled

The issue is not consistently happening which makes it hard to catch.

We found out that turning off the brave shield makes it works, but we are not sure why

Hey @shi88.andy

Thanks for your feedback.

We will test the Brave browser and provide you with a response.

Thanks
Vic

Hey @shi88.andy

Sorry for the late reply.

In the Video SDK, we rely on navigator.hardwareConcurrency to determine if the device has enough performance to support certain features (such as Virtual background).

In other browsers such as Chrome, Edge, and Firefox, it always returns the correct logical core count. However, in the Brave browser, it is a random value (between 2 and 8). So you might see that virtual background sometimes works and sometimes doesn’t.

Thanks
Vic

Thanks, but this just happened to us again this morning on
macbook air m1, chrome Version 122.0.6261.94 (Official Build) (arm64)