# How to integrate Video SDK in Web in Pure JavaScript without Node Server

**URL:** <https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709>\
**Category:** Web\
**Created:** [December 4, 2022, 7:03pm UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709 "2022-12-04T19:03:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.hamza](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@a.hamza](https://devforum.zoom.us/u/a.hamza)\
**Post date:** [December 4, 2022, 7:03pm UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/1 "2022-12-04T19:03:03Z")

</div>

Hi everyone,

(I am sorry for my bad English)

I have been working with the video SDK to integrate into my website but I have been facing one issue and I am confused about that. The video SDK I have downloaded is setup in node and I have to setup node modules and then start node server to test this.

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

But I don’t want to use node modules in my website, I am looking for alterative solution of SDK in JavaScript so I can implement it, but in zoom documentation there is no help about this and no package available for JavaScript.

For Zoom Meetings they were also providing CDN links instead of node modules to integrate zoom meeting and I used that which worked fine for me.

But now for zoom video SDK i tried and searched a lot but not able to find any CDN links for this video SDK.

Is there anyone who have implemented video SDK in website without node modules, Please I need your guidance.  
Your help will be really appreciated.

Hafiz

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [December 5, 2022, 4:31pm UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/2 "2022-12-05T16:31:28Z")

</div>

Hi @a.hamza ,

Thank you for your post! Please see this previous post for a link to the CDN via unpkg and let me know if this helps.

> [@Use CDN to import Zoom video sdk for the Flutter web](https://devforum.zoom.us/t/use-cdn-to-import-zoom-video-sdk-for-the-flutter-web/69699/3):
>
> Hello Hoan, We do not currently have a Flutter port of our Video SDK and I am unsure if there are plans to support this in the future. I can do some more research on this issue and see what information I find. The @zoom/videosdk you mentioned on NPM is also available via the unpkg CDN and might work for your use case if you just want to embed the \<script\> import in your resulting html for deployment. \<script src="https://unpkg.com/@zoom/videosdk@1.3.0/dist/index.js"\>\</script\>

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![a.hamza](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@a.hamza](https://devforum.zoom.us/u/a.hamza)\
**Post date:** [December 6, 2022, 7:51pm UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/3 "2022-12-06T19:51:36Z")

</div>

Hi @rehema.zoom

yeah thank you for providing that link, its helpful for me.

But now I am getting struck with one more issue of signature token, its not working and always saying ( **This account does not exist or does not belong to you** )

I have been working with the video SDK implementation in one of my project. I have been using the PHP JWT to generate the signature for the SDK to join video session. But every time i try to join the session, it returns an error in console type: **This account does not exist or does not belong to you**

I tried multiple times but struck with the same issue, Can you please help me with this issue, Here I am attaching the code section how I am generating the signature. I followed the documentation to generate token. [https://marketplace.zoom.us/docs/sdk/video/auth/](https://marketplace.zoom.us/docs/sdk/video/auth/)

This is the function I am using to generate signature.

Thanks

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [December 7, 2022, 7:26pm UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/4 "2022-12-07T19:26:08Z")

</div>

HI @a.hamza ,

Thanks for letting me know the link was helpful! For this current error, can you please try your Video SDK credentials with the Video SDK web sample application and let me know if the same error occurs?

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![a.hamza](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@a.hamza](https://devforum.zoom.us/u/a.hamza)\
**Post date:** [December 8, 2022, 5:21am UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/5 "2022-12-08T05:21:14Z")

</div>

Hi @rehema.zoom

Yes I tried the Video SDK web sample application and it works fine with that as it generate the signature with the node signature package [GitHub - zoom/videosdk-sample-signature-node.js: Generate a signature to Start and Join Sessions with the Zoom Video SDKs.](https://github.com/zoom/videosdk-sample-signature-node.js)

But the problem is when I use the PHP based function to generate signature, then this error appears. As I have my application in pure HTML and JS and not using any node server and don’t want to use it so for security purpose I will have to generate signature in my server side (PHP) and then will pass it to JS to start video session, but its always with this error ( **This account does not exist or does not belong to you** )

**Here Is the function I used to generate the signature in PHP**

```auto
private function generateSessionSignature($topic, $role, $sessionKey, $password)
    {
        $key = Constants::ZOOM_API_KEY;
        $secret = Constants::ZOOM_API_SECRET;
        $payload = [
            'app_key' => $key,
            'tpc' => $topic,
            'version' => 1,
            'role_type' => $role,
            'user_identity' => null,
            'session_key' => $sessionKey,
            'iat' => time(),
            'exp' => strtotime('+40 minute'),
            'pwd' => $password,
        ];
        return JWT::encode($payload, $secret, 'HS256');
    }

```

I am passing the required parameters in function parameters from my coding logic. I hope this will help you to track the problem if there is with my function logic to generate signature.

Thanks,  
Hafiz

---

<div class="post-metadata">

**Author:** ![a.hamza](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@a.hamza](https://devforum.zoom.us/u/a.hamza)\
**Post date:** [December 9, 2022, 10:37am UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/6 "2022-12-09T10:37:11Z")

</div>

Hi @rehema.zoom,  
I hope you are doing well.

Are you around ? Any recommendations ? I am waiting for any solution to this problem.

I would really appreciate it. 🙂

Thanks,  
Hafiz

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [December 15, 2022, 10:48pm UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/7 "2022-12-15T22:48:14Z")

</div>

Hi @a.hamza,

Doing some digging on this issue. I will reach back out with an update as soon as possible. Thank you for your patience!

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [December 16, 2022, 5:43am UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/8 "2022-12-16T05:43:52Z")

</div>

Hey @a.hamza

Could you verify the signature on the site [https://jwt.io/](https://jwt.io/) to make sure the signature is valid?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![a.hamza](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@a.hamza](https://devforum.zoom.us/u/a.hamza)\
**Post date:** [December 28, 2022, 5:51am UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/9 "2022-12-28T05:51:13Z")

</div>

Hi @vic.yang

Yes I verified the token at [https://jwt.io/](https://jwt.io/) and it was valid.

---

<div class="post-metadata">

**Author:** ![a.hamza](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@a.hamza](https://devforum.zoom.us/u/a.hamza)\
**Post date:** [December 28, 2022, 5:56am UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/10 "2022-12-28T05:56:13Z")

</div>

Hi @rehema.zoom

I haven’t heard from you since then, but I have resolved the issue myself. It was due to the password for the session. Your documentation had a little conflict for the password parameters, when generating signature, the password parameter was optional (according to documentation) but for joining the session, password field is required. Which is confused thing, when i didn’t set password at signature creation then it should be optional for joining session as well or it should be required for both APIs, Otherwise it can be a conflict.  
What is the need of password when I set it empty in signature.

---

<div class="post-metadata">

**Author:** ![anawilliam850](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anawilliam850/32/33827_2.png) [@anawilliam850](https://devforum.zoom.us/u/anawilliam850)\
**Post date:** [December 29, 2022, 2:14am UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/11 "2022-12-29T02:14:28Z")

</div>

thank you for sharing

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [December 29, 2022, 11:06pm UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/12 "2022-12-29T23:06:22Z")

</div>

Here is the [session](https://youtu.be/t8IAvgRjpV4) regarding Zoom Video SDK Integration using ReactJS.

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [January 3, 2023, 2:29pm UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/13 "2023-01-03T14:29:02Z")

</div>

Hi @a.hamza ,

I apologize, the late reply is due to the holiday season. I’m glad you figured out the issue, but see what you’re referring to about the confusion in the documentation, and why a password is needed if it is only set to ‘empty’. I will speak with the appropriate about seeing if this is a change that should be made in documentation/how this can be clearer.

Thanks,  
Rehema

---

<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:** [February 3, 2023, 12:29am UTC](https://devforum.zoom.us/t/how-to-integrate-video-sdk-in-web-in-pure-javascript-without-node-server/79709/14 "2023-02-03T00:29:17Z")

</div>

Closed on February 3, 2023, 12:29am UTC

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