proboy
(Pro)
August 10, 2023, 2:19pm
1
Description
While trying to join a meeting (client.join), I get this error: Uncaught ReferenceError: JsMediaSDK_Instance is not defined
Browser Console Error
Which Web Meeting SDK version?
2.15.0
Meeting SDK Code Snippets
Device (please complete the following information):
Device: PC
OS: Windows 11
Browser: Chrome
Browser Version: 115.0.5790.171
proboy
(Pro)
August 10, 2023, 2:45pm
2
I want to mention that I also have this error before the error in the post:
chunsiong.zoom
(Chun Siong (tag me for response))
August 11, 2023, 8:52am
3
@proboy ,
From the code snippet which you have shared, there is high possibility that client.init has not completed before client.join runs, hence the race condition and error “JsMediaSDK_Instance” is not defined.
A possible solution would be to use promises for the client.join.
Example
client.init({
zoomAppRoot: rootElement,
language: "en-US"
}).then((e) => {
console.log('success', e);
//join here
client.join({
sdkKey: meetingConfig.sdkKey,
signature: meetingConfig.signature,
meetingNumber: meetingConfig.meetingNumber,
userName: meetingConfig.userName,
password: meetingConfig.passWord,
userEmail: meetingConfig.userEmail,
}).then((e) => {
console.log('success', e);
}).catch((e) => {
console.log('error', e);
});
}).catch((e) => {
console.log('error', e);
});
system
(system)
Closed
September 10, 2023, 6:53pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.