Stuck on Joining Meeting pre-loader screen

Description
Zoom Client SDK hangs on the “Joining Meeting” loading screen when calling the ZoomMtg.init() function. I’m trying to join a meeting using the client SDK without logging in.

Error
Attached is the screenshot of the screen stuck on the loader and an TypeError in the console on the right.

Which version?
Version 1.8.5

To Reproduce(If applicable)
I’m working with the client SDK on a simple HTML5 page.
I’ve made the repository publicly accessible here - Pranav Shikarpur / zoom-client-sdk-error · GitLab

  1. Clone the git repo
  2. Replace the meetingNumber in the index.js file.
  3. View the files by running a static server.

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device: Laptop
  • OS: Ubuntu 20.04 LTS
  • Browser: Brave Browser (Chromium based)

Could you please post a screenshot of your join meeting code? Please redact any API keys or meeting IDs.

Thanks for the response @alexmayo
Please find the index.js file that contains the join meeting code below:

ZoomMtg.setZoomJSLib('https://source.zoom.us/1.8.5/lib', '/av');


ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();

const zoomMeeting = document.getElementById("zmmtg-root");

ZoomMtg.init({
    leaveUrl: "https://example.com/return_url",
    success: () => {
        ZoomMtg.join({
            meetingNumber: "XXXXXXXXXX",
            userName: "test"
        })
    },
    error: function (res) {
        console.log(res);
    },
})

Hi @pranav,

You’re missing some required fields here.

Please see ZoomMtg - Documentation for the list of required fields.

Here’s an example of what you should include in the join()method.

ZoomMtg.join({
    meetingNumber: 123456789,
    userName: 'User name',
    userEmail: '',
    passWord: '',
    apiKey: 'API_KEY',
    signature: 'SIGNATURE',
    success: function(res){
        console.log(res)
    },
    error: function(res){
        console.log(res)
    }
 });

Hopefully this helps.

Thanks,
Alex

2 Likes

Thanks for posting the solution @alexmayo ! :slight_smile:

@pranav , like mentioned by @alexmayo , you need to include the required fields in the ZoomMtg.join function.

Let me know if that helps!

-Tommy

1 Like

Hi,
Thank you for your responses @tommy and @alexmayo. I did take a look at the required fields.
Why are the API key and signature fields required? I’m trying to anonymously join a zoom meeting using the SDK for a meeting that has already been started by another user.

Can I join the Zoom meeting without an API key and signature using the ZoomMtg.join() method?

Hey @pranav ,

You must supply the required values for the ZoomMtg.join() function to work. :slight_smile:

Thanks,
Tommy

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