# Is there an HTML sample for the SDK that uses either local or CDN resources?

**URL:** <https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980>\
**Category:** Web\
**Created:** [February 10, 2021, 4:44am UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980 "2021-02-10T04:44:26Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgelbhb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rgelbhb/32/17018_2.png) [@rgelbhb](https://devforum.zoom.us/u/rgelbhb)\
**Post date:** [February 10, 2021, 4:44am UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/1 "2021-02-10T04:44:26Z")

</div>

I finally got the nodejs sample application to work and was able to get a a video conference going. However, I am working to integrate the SDK into an existing HTML5 app that isn’t either nodejs or react.

Therefore I am looking for answers to these questions.

1. Where is the CDN to the SDK? The [documentation](https://marketplace.zoom.us/docs/sdk/custom/web/build#option-2-integrate-with-cdn) states CDN will be available upon release. So what are my choices here? How can I references the SDK from a single foo.html file? Is there a local version of whatever you are planning to serve via CDN?

2. Is there an HTML5 sample somewhere similar to the node application?

**Which version?**  
Zoom instant sdk web 1.0.0

---

<div class="post-metadata">

**Author:** ![rgelbhb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rgelbhb/32/17018_2.png) [@rgelbhb](https://devforum.zoom.us/u/rgelbhb)\
**Post date:** [February 17, 2021, 2:23am UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/2 "2021-02-17T02:23:12Z")

</div>

Any clarification for this would be great!

---

<div class="post-metadata">

**Author:** ![chris6](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@chris6](https://devforum.zoom.us/u/chris6)\
**Post date:** [February 17, 2021, 1:57pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/3 "2021-02-17T13:57:44Z")

</div>

Hi there,

I’m very interested to know about the CDN too. Same two questions for me, can I load the libraries through a simple html file while the CDN is not ready? Is there an app sample for that?

Thanks!

Chris

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 18, 2021, 6:15pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/4 "2021-02-18T18:15:29Z")

</div>

Hey @rgelbhb , @chris6 ,

[Once the Fully Customizable Web SDK is self serve](https://devforum.zoom.us/t/when-will-the-fully-customizable-sdk-be-available/36207/3), the CDN link and instructions will be added to the documentation.

You will be able to load the libraries through a script tag in your HTML file. 🙂

We will have sample apps soon.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![rpDominik](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@rpDominik](https://devforum.zoom.us/u/rpDominik)\
**Post date:** [April 20, 2021, 11:30am UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/5 "2021-04-20T11:30:53Z")

</div>

@tommy

Are there any information about a CDN for the new Fully Customizable Web SDK/Video SDK?  
The client SDK worked fine with the CDN, but I can´t seem to find the CDN for the new Video SDK.

---

<div class="post-metadata">

**Author:** ![bekit](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bekit/32/26056_2.png) [@bekit](https://devforum.zoom.us/u/bekit)\
**Post date:** [April 21, 2021, 5:39pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/6 "2021-04-21T17:39:02Z")

</div>

There is some information in the documentation on setting it to use the CDN, but all of the links that it points to are invalid paths. I’m pretty sure it’s just a matter of that functionality not yet being launched.

FWIW, I was able to run the SDK through browserify to give me a single file that could be imported. You do still have to host the `lib` files somewhere and point to them when running the init, though.

---

<div class="post-metadata">

**Author:** ![rpDominik](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@rpDominik](https://devforum.zoom.us/u/rpDominik)\
**Post date:** [April 22, 2021, 1:57pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/7 "2021-04-22T13:57:32Z")

</div>

@bekit Thats nice, could you share your steps? I´m trying to do that, but it would be nice to have some insight on you.

---

<div class="post-metadata">

**Author:** ![bekit](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bekit/32/26056_2.png) [@bekit](https://devforum.zoom.us/u/bekit)\
**Post date:** [April 22, 2021, 5:46pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/8 "2021-04-22T17:46:21Z")

</div>

Sure thing.

First thing I did was get the sample app in the web video sdk working (following all of the steps to npm install and copy over the `@zoomus` folder, etc.). Once I had that working, I installed [Browserify](http://browserify.org/) globally.

Then I created a simple file that would bring in the instantsdk source. For an example, let’s call it `main.js`. Place this in the root of the `Sample` folder. This file just had one line in it:

```
global.ZoomInstant = require("@zoomus/instantsdk");

```

Then run browserify on it:

```
browserify main.js -o zoomus-instantsdk.js

```

That packages it up into the single `zoomus-instantsdk.js` file that when imported will give you a global object `ZoomInstant` to access the SDK.

In addition, you have to take the `public/lib` folder and host it somewhere accessible (until the CDN is available). When you do your `init`, you have to pass this location. For example:

```
zoomClient = ZoomInstant.createClient();
await zoomClient.init("en-US", `${window.location.origin}/path/to/lib`);

```

I’m hoping that this is close enough to what will be released when Zoom provides their own bundle version that I’ll be able to swap in the official version with only minor changes.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![elearningevolve](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elearningevolve/32/75605_2.png) [@elearningevolve](https://devforum.zoom.us/u/elearningevolve)\
**Post date:** [April 22, 2021, 7:17pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/9 "2021-04-22T19:17:37Z")

</div>

@bekit Thank you for sharing this valuable piece of info.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 22, 2021, 9:18pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/10 "2021-04-22T21:18:51Z")

</div>

Thanks for sharing @bekit ! 🙂

@rpDominik , no CDN for the Video SDK yet, but stay tuned, we are evaluating this.

-Tommy

---

<div class="post-metadata">

**Author:** ![brage.breivik](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@brage.breivik](https://devforum.zoom.us/u/brage.breivik)\
**Post date:** [April 28, 2021, 11:23am UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/11 "2021-04-28T11:23:43Z")

</div>

Then why does your documentation say that you have a CDN? This is just one of many examples of incorrect documentation, which makes integrating with this SDK a lot harder than it should be

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 29, 2021, 5:59pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/12 "2021-04-29T17:59:08Z")

</div>

Hey @brage.breivik ,

Can you point out where in our Video SDK - Web docs that is so we can correct it? 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![brage.breivik](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@brage.breivik](https://devforum.zoom.us/u/brage.breivik)\
**Post date:** [April 30, 2021, 6:48am UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/13 "2021-04-30T06:48:49Z")

</div>

In the 1.0.3 release: the file ./docs/integrate instant.md. It also claims that there should be an npm package available, but there isn’t.  
Online, at [https://marketplace.zoom.us/docs/sdk/video/web/reference](https://marketplace.zoom.us/docs/sdk/video/web/reference) the description of the init method claims that you can use either “CDN” or “Global”, but when i try to access the urls mentioned I get access denied.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 30, 2021, 5:41pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/14 "2021-04-30T17:41:31Z")

</div>

Thanks @brage.breivik ,

We will get this updated to show the correct install flow. 🙂 (DEVELOPERS-1061)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![chris6](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@chris6](https://devforum.zoom.us/u/chris6)\
**Post date:** [June 14, 2021, 2:46pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/15 "2021-06-14T14:46:09Z")

</div>

Hi Tommy,

Following up on this, are you planning to release a CDN anytime soon?

Thanks,

Chris

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 21, 2021, 6:26pm UTC](https://devforum.zoom.us/t/is-there-an-html-sample-for-the-sdk-that-uses-either-local-or-cdn-resources/42980/16 "2021-06-21T18:26:33Z")

</div>

Hey @chris6 , @rgelbhb ,

We do not have plans for a CDN yet, however, we have published the Video SDK to Github and NPM 🙂

> **[@zoom/videosdk](https://www.npmjs.com/package/@zoom/videosdk)**
>
> Zoom Web Video SDK

> **[zoom/videosdk-web](https://github.com/zoom/videosdk-web)**
>
> Zoom Video SDK. Contribute to zoom/videosdk-web development by creating an account on GitHub.

Thanks,  
Tommy
