CDN not working on my project - ZoomVideoSDK

Hello,
I am following the get started link to set up a project. I am currently trying to run this on an html webpage with a javascript link.

Following the CDN instructions I get an error at the step where I create the client

const client = ZoomVideo.createClient()

The error I get in the browser console is “app.js:6 Uncaught ReferenceError: ZoomVideo is not defined”

I’m currently using version 1.5.5 in the script tag link.
script in js file:

function zoomBot() {
const client = ZoomVideo.createClient();

client.init(‘en-US’, ‘CDN’)
let stream;
};

zoomBot();
console.log(zoomBot);

Links in html head:

<script src="https://source.zoom.us/videosdk/zoom-video-1.5.5.min.js" defer>

Any help would be appreciated as I am not sure what is going on,
thank you!

I am having the same issue and came here to post about it.

Here’s example not working:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <title>Test Page</title>
    <link rel="icon" href="~/content/img/ico-favicon.ico" type="image/x-icon">
    <script src="https://source.zoom.us/videosdk/zoom-video-1.6.0.min.js"></script>
    <script type="text/javascript">
        const zoomClient = ZoomVideo.createClient();
    </script>
   
</head>
<body style="background-color:#ededed;">
    <h1>Test Page</h1>
</body>
</html>

Console:

testzoom:19 Uncaught ReferenceError: ZoomVideo is not defined
at testzoom:19:28

Link to Documentation where this call is listed:
Get started (zoom.us)

Thank you both for sharing this - I’ll take a look and see what’s going on and get back as soon as I can.

  • kja

try this:
const ZoomVideo = window.WebVideoSDK.default
const client = ZoomVideo.createClient()

instead of:
const zoomClient = ZoomVideo.createClient();

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