Meeting SDK - Component view | Uncaught ReferenceError: JsMediaSDK_Instance is not defined

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

I want to mention that I also have this error before the error in the post:

@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);

  });

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