# Zoom sdk integration and stuck on zoining meeting

**URL:** <https://devforum.zoom.us/t/zoom-sdk-integration-and-stuck-on-zoining-meeting/93195>\
**Category:** Meeting SDK\
**Created:** [August 10, 2023, 5:51am UTC](https://devforum.zoom.us/t/zoom-sdk-integration-and-stuck-on-zoining-meeting/93195 "2023-08-10T05:51:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gravitydigital](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@gravitydigital](https://devforum.zoom.us/u/gravitydigital)\
**Post date:** [August 10, 2023, 5:51am UTC](https://devforum.zoom.us/t/zoom-sdk-integration-and-stuck-on-zoining-meeting/93195/1 "2023-08-10T05:51:48Z")

</div>

Meeting SDK version : 2.10.1;  
os:windows;  
Client view

Whle I am integrating zoom Sdk to my nodejs project I face Issue in joining meeting I get stuck to a joining meeting page  
const express=require(“express”);  
const app=express();  
const bodyParser = require(‘body-parser’);  
const mysql = require(‘mysql’);  
const dotenv = require(‘dotenv’);  
const jwt = require(‘jsonwebtoken’);  
const session = require(‘express-session’);  
const path = require(‘path’);  
const { exit } = require(“process”);  
const { v4: uuidv4 } = require(‘uuid’);  
const http = require(“http”);  
const { url } = require(“inspector”);  
const passport = require(‘passport’);  
const LocalStrategy = require(‘passport-local’).Strategy;  
dotenv.config();  
const bcrypt = require(‘bcrypt’);  
const multer = require(‘multer’);  
const jsrsasign = require(‘jsrsasign’);

const cors = require(‘cors’);  
const corsOptions = {  
origin: ‘[http://localhost:3000](http://localhost:3000)’,  
app.use(cors(corsOptions));  
app.use(express.static(path.join(\_\_dirname, ‘public’)));  
app.set(‘view engine’, ‘ejs’);  
app.use(bodyParser.urlencoded({ extended: false }));  
/\* mysql connection \*/  
var con = mysql.createConnection({  
host: “localhost”,  
user: “root”,  
password: “password”,  
database:“zoomschema”  
});

con.connect(function(err) {  
if (err) throw err;  
console.log(“Connected!”);  
});

// function generateAccessToken(username) {  
// const zoomApiSecret = ‘redacted’;  
// const token = jwt.sign({ name: username }, zoomApiSecret, { expiresIn: ‘1h’ });  
// return token;  
// }  
function generateAccessToken(username) {  
const zoomApiSecret = ‘’; // Replace this with your Zoom API Secret  
const zoomApiKey = ‘’; // Replace this with your Zoom API Key

// Payload for the JWT token  
const payload = {  
iss: zoomApiKey, // Zoom API Key as issuer  
exp: Math.floor(Date.now() / 1000) + 3600, // Token expires in 1 hour (3600 seconds)  
name: username,  
};

// Generate the JWT token  
const token = jwt.sign(payload, zoomApiSecret);

return token;  
}

// function generateAccessToken(username) {  
// const zoomApiSecret = ‘redacted’; // Replace this with your Zoom API Secret  
// const zoomApiKey = ‘redacted’; // Replace this with your Zoom API Key

// // Payload for the JWT token  
// const payload = {  
// iss: zoomApiKey, // Zoom API Key as issuer  
// exp: Math.floor(Date.now() / 1000) + 3600, // Token expires in 1 hour (3600 seconds)  
// name: username,  
// };

// // Generate the JWT token  
// const token = jwt.sign(payload, zoomApiSecret);

// return token;  
// }  
// const loginRoutes = require(‘./routes/login.js’)(con);  
app.get(‘/’, (req, res) =\> {  
const username = ‘Rishabh Verma’; // Replace with the logged-in user’s name  
const meetingNumber = ‘77619890477’; // Replace with the meeting number to join  
const userEmail= ‘redacted@gmail.com’;  
// const meetingPassword = ‘fkYw3k’; // Replace with the meeting password if applicable  
const passWord= ‘vb4Yzv’;  
// Generate a JWT token for the user without specifying the meeting ID  
const zoomApiKey = ‘’;  
const accessToken = generateAccessToken(username);  
// Pass the Zoom meeting URL and token as parameters to the dashboard view  
const zoomMeetingUrl = ’ ';  
res.render(‘test’, { zoomMeetingUrl,accessToken,userEmail,username,passWord,meetingNumber,zoomApiKey});  
});

app.set(‘views’, path.join(\_\_dirname, ‘views’));  
app.listen(3000,function(req,res){  
console.log(“server connected to port 3000”);  
})  
This is my app.js code and now code for my ejs file

 Zoom Web SDK and over a browser I get like this surfing of page holding message joining meeting.

Please provide me solution to cope with this.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [August 16, 2023, 2:48pm UTC](https://devforum.zoom.us/t/zoom-sdk-integration-and-stuck-on-zoining-meeting/93195/2 "2023-08-16T14:48:14Z")

</div>

Hi @gravitydigital ,

We no longer support that version. Current minimum is 2.7.0 as of August 5th. Please upgrade and try again!

> **[Meeting SDK - Minimum Version](https://developers.zoom.us/docs/meeting-sdk/minimum-version/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

---

<div class="post-metadata">

**Author:** ![gravitydigital](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@gravitydigital](https://devforum.zoom.us/u/gravitydigital)\
**Post date:** [August 21, 2023, 6:39am UTC](https://devforum.zoom.us/t/zoom-sdk-integration-and-stuck-on-zoining-meeting/93195/4 "2023-08-21T06:39:14Z")

</div>

> [@gianni.zoom](#):
>
> 2.7.0

Now I had changed my version to this in my code

 Zoom Web SDK /\* To hide \*/ #zmmtg-root { display: none; }

/\* To show \*/  
#zmmtg-root {  
display: block;  
}

 and getting this issue but still zoom mtg is defined GET https://source.zoom.us/zoom-meeting-%202.7.0.min.js net::ERR\_ABORTED 403 (index):46 Uncaught ReferenceError: ZoomMtg is not defined at (index):46:3 please review the code again .

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [August 21, 2023, 11:18pm UTC](https://devforum.zoom.us/t/zoom-sdk-integration-and-stuck-on-zoining-meeting/93195/5 "2023-08-21T23:18:21Z")

</div>

Hi @gravitydigital ,

You may have that line commented out:

> [@Error ZoomMtg is not defined](https://devforum.zoom.us/t/error-zoommtg-is-not-defined/61145/4):
>
> 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](https://marketplace.zoom.us/docs/sdk/native-sdks/web/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](https://marketplace.zoom.us/docs/sdk/native-sdks/web/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://marketpla…](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build#install-from-cdn)

Please check out some of the other threads on this topic.

---

<div class="post-metadata">

**Author:** ![gravitydigital](https://avatars.discourse-cdn.com/v4/letter/g/b5a626/32.png) [@gravitydigital](https://devforum.zoom.us/u/gravitydigital)\
**Post date:** [August 22, 2023, 9:57am UTC](https://devforum.zoom.us/t/zoom-sdk-integration-and-stuck-on-zoining-meeting/93195/6 "2023-08-22T09:57:17Z")

</div>

Zoom Web SDK /\* To hide \*/ #zmmtg-root { display: none; }

/\* To show \*/  
#zmmtg-root {  
display: block;  
}

 I had used this in this I faced problem in connectivity with audio and video zoom-meeting-2.7.0.min.js:2 Uncaught (in promise) {type: 'VIDEO', evt: 'ERROR', errorCode: 'NOT\_CONNECTED', data: undefined} v @ zoom-meeting-2.7.0.min.js:2 value @ zoom-meeting-2.7.0.min.js:2 Rh @ react-dom.production.min.js:148 Sh @ react-dom.production.min.js:152 Qj @ react-dom.production.min.js:174 unstable\_runWithPriority @ react.production.min.js:24 Za @ react-dom.production.min.js:73 eb @ react-dom.production.min.js:170 gf @ react-dom.production.min.js:162 (anonymous) @ react-dom.production.min.js:73 unstable\_runWithPriority @ react.production.min.js:24 Za @ react-dom.production.min.js:73 $g @ react-dom.production.min.js:73 ja @ react-dom.production.min.js:73 vk.Events.current @ react-dom.production.min.js:240 Ki @ react-dom.production.min.js:44 zoom-meeting-2.7.0.min.js:2 Uncaught (in promise) {type: 'AUDIO', evt: 'ERROR', errorCode: 'NOT\_CONNECTED', data: undefined}

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [August 24, 2023, 4:39pm UTC](https://devforum.zoom.us/t/zoom-sdk-integration-and-stuck-on-zoining-meeting/93195/7 "2023-08-24T16:39:36Z")

</div>

Sorry, what are you trying to say? Did you look through the thread linked?
