Description
Hello, our users have been encountering this error when they try to use the web SDK on their Chromebook.
Unfortunately, I cannot test this myself as I do not have access to a Chromebook.
I’d be happy to know if there are any workarounds you can suggest, or if this is already known and a fix is on the way.
Browser Console Error
ReferenceError: PThread is not defined
Which Web Meeting SDK version?
2.13.0, client view
Meeting SDK Code Snippets
const { ZoomMtg } = window;
ZoomMtg.setZoomJSLib('https://source.zoom.us/2.13.0/lib', '/av');
ZoomMtg.preLoadWasm();
ZoomMtg.prepareWebSDK();
const zoomError = (message, { method, status, errorCode, errorMessage }) => {
const error = Object.assign(new Error(message), {
data: {
method,
status,
errorCode,
errorMessage,
},
});
console.error(error);
Sentry.captureException(error);
};
const initZoom = (zoomData) => {
ZoomMtg.init({
...meetingConfiguration,
debug: false,
leaveUrl: window.zoomLeaveUrl,
success() {
ZoomMtg.join({
meetingNumber: zoomData.meetingNumber,
passWord: zoomData.password,
sdkKey: zoomData.sdkKey,
signature: zoomData.signature,
userName: zoomData.userName,
zak: zoomData.zak,
error: zoomError.bind(null, 'join error'),
});
},
error: zoomError.bind(null, 'init error'),
});
};
getZoomData().then(
(response) => {
initZoom(response.data);
},
(reason) => {
Sentry.captureException(reason);
},
);
To Reproduce (If applicable)
Steps to reproduce the behavior:
- Use a Chromebook
- Go to the URL that has the SDK implemented
- Click “Join”
- Open the developer console, you’ll see the error “ReferenceError: PThread is not defined”
Device:
- Device: Chromebook
- OS: Chrome OS 14541.0.0
- Browser: Chrome
- Browser Version 114.0.0 & 115.0.0