# CDN not working on my project - ZoomVideoSDK

**URL:** <https://devforum.zoom.us/t/cdn-not-working-on-my-project-zoomvideosdk/82068>\
**Category:** Web\
**Created:** [January 25, 2023, 2:05am UTC](https://devforum.zoom.us/t/cdn-not-working-on-my-project-zoomvideosdk/82068 "2023-01-25T02:05:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 25, 2023, 2:05am UTC](https://devforum.zoom.us/t/cdn-not-working-on-my-project-zoomvideosdk/82068/1 "2023-01-25T02:05:34Z")

</div>

Hello,  
I am following the get started [link](https://marketplace.zoom.us/docs/sdk/video/web/get-started/) 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!

---

<div class="post-metadata">

**Author:** ![development\_1](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@development\_1](https://devforum.zoom.us/u/development_1)\
**Post date:** [January 25, 2023, 2:19pm UTC](https://devforum.zoom.us/t/cdn-not-working-on-my-project-zoomvideosdk/82068/2 "2023-01-25T14:19:22Z")

</div>

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

Here’s example not working:

```auto
<!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)](https://developers.zoom.us/docs/sdk/video/web/get-started/)

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [January 26, 2023, 5:24pm UTC](https://devforum.zoom.us/t/cdn-not-working-on-my-project-zoomvideosdk/82068/3 "2023-01-26T17:24:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![axel.ojeda](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@axel.ojeda](https://devforum.zoom.us/u/axel.ojeda)\
**Post date:** [February 8, 2023, 2:47pm UTC](https://devforum.zoom.us/t/cdn-not-working-on-my-project-zoomvideosdk/82068/4 "2023-02-08T14:47:57Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 11, 2023, 12:48am UTC](https://devforum.zoom.us/t/cdn-not-working-on-my-project-zoomvideosdk/82068/5 "2023-03-11T00:48:20Z")

</div>

Closed on March 11, 2023, 12:48am UTC

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