Error ZoomMtg is not defined

Hi Admin,

After running web app I got error “Uncaught ReferenceError: ZoomMtg is not defined at websdkready (index.js:12) at index.js:3”

I am not sure where to keep which code, please guide.

Error screenshot: error-showing-in-console — ImgBB
Code screenshot: code-for-CDN-based-Component-view-Webinar — ImgBB

Kind regards,
Amzad

Hey @abhimanyu.sikarwar ,

Please fill out the post template so we have enough info to support you. :slight_smile:


Description
A clear and concise description of what the question is.

Browser Console Error
The full error message or issue you are running into.

Which Web Meeting SDK version?
Knowing the version can help us to identify your issue faster. [e.g. 1.9.9]

Meeting SDK Code Snippets
The code snippets that are causing the error / issue so we can reproduce.

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

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

Device (please complete the following information):

  • Device: [e.g. Macbook Pro]
  • OS: [e.g. macOS 11]
  • Browser: [e.g. Chrome]
  • Browser Version [e.g. 88.0.4324.150 (Official Build) (x86_64)]

Additional context
Add any other context about the problem here.


Thanks,
Tommy

Description
We have followed every steps from this url https://bit.ly/3GpbG84 but not successful for running CDN based component view.
Please do the correction from your end in the attached Code Snippets & send us working project.

Browser Console Error
Url: error-showing-in-console — ImgBB

Which Web Meeting SDK version?
2.0.1

Meeting SDK Code Snippets
URL: https:// github. com /ottoedge/DealerDigitalSummit/

To Reproduce(If applicable)
From the above git code, please have a look in the index.html & “js” folder for reproduce.

Screenshots
In the bottom of index. html I have used code of attached screenshot: https:// ibb. co /0Jzvr0x

Device (please complete the following information):
Device: Dell laptop
OS: windows 10
Browser: all major browsers including Chrome
Browser Version: 95.0.4638.69 (Official Build) (64-bit)

Additional context
If you need any credentials for running the web app, please tell us.

Hey @abhimanyu.sikarwar ,

ZoomMtg is undefined for you because you have commented out the script that imports it:

The following script is for the Client View which is what I assume you are using:

<script src="https://source.zoom.us/zoom-meeting-2.0.1.min.js"></script>

This script is for the new Component View:

<script src="https://source.zoom.us/2.0.1/zoom-meeting-embedded-2.0.1.min.js"></script>

Please see our documentation here: https://marketplace.zoom.us/docs/sdk/native-sdks/web/build#install-from-cdn

You can see the sample app for the Client View using the CDN does not have this line commented out:

Thanks,
Tommy

Your given solutions are working right now. Thank you for your support.

1 Like

Hi, @abhimanyu.sikarwar ,

Glad to hear Tommy’s solution is working! Be sure to reach out should you have any additional questions.

Thanks,
Donte

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