@tommy yes, I set breakpoints and can confirm init() is being called.
I tried unminifying as much of the Zoom SDK as I could and even stepped into its init() function. It’s definitely being called but it’s still hard to make sense of it since the source is pretty blackboxed.
What ended up solving it was calling those two lines that Tommy posted and then including all of the required assets via the CDN
The information contained in this E-mail message and its attachments is privileged and/or confidential, and may be protected from disclosure. Please be aware that any other use, printing, copying, disclosure or dissemination of this communication may be subject
to legal restriction or sanction.
But When the function ZoomMtg.init() executes, it directly jumps out and there are no errors here. I want to know what causes the init function to jump out.
When I use the code in the componentDidMount method of some components, the init method can execute normally and successfully join the meeting, but when used in the componentDidMount method of some components, the init method will directly jump It has been executed and no errors are printed. I want to know if this good and bad phenomenon is related to the execution time node of componentDidMount and the loading order of the dependency js library of the Web SDK
Hey @tommy.
In React, I used the Zoomtg.init method in componentDidmount of different components, but some of them succeeded and some failed. I don’t know if this is related to the order of the React life cycle mount.
I am facing an issue where when I use useEffect to join the meeting then, I am getting an error which i am consoling it in the terminal from the response coming in success attribute of init and join methods and the error is - “{method: “init”, status: false, errorCode: 3008, errorMessage: “Please init meeting first!”, result: null}”. This is coming in the success method of join method.
But the ZoomMtg.init function response is - “{method: “init”, status: true, errorCode: 0, errorMessage: null, result: null}”.
This error is not coming when I am not using useEffect to call the function.
Thank you for reaching out to the Zoom Developer Forum. Please try moving the following lines to the top of the file so that we can ensure they are always set before any other code runs and the scope they reside in is available for all functions on the page.