I am a little Confused, i want to create a Video SDK app for web and for that i have to create a “Video SDK” app from the build page. But there i only see SDK option. Are they both the same ?
Then it gives me an error “This account does not exist or does not belong to you” with error code 200, when joining a session using the Web Video SDK.
i am using a JWT Signature!
I used Sdk key & Secret key to generate a JWT token.
I used this method to generate JWT. Please note:
- iat: in second
- tpc: must same with
join function
You can use this website to generate the JWT to test:
I used this to generate the JWT:
generateSignature( sdkKey, sdkSecret, sessionName, role, sessionKey, userIdentity ) {
const iat = Math.round((new Date().getTime() - 30000) / 1000);
const exp = iat + 60 * 60 * 2;
const oHeader = { alg: "HS256", typ: "JWT" };
const oPayload = {
app_key: sdkKey,
tpc: sessionName,
role_type: role,
session_key: sessionKey,
user_identity: userIdentity,
iat: iat,
exp: exp,
};
const sHeader = JSON.stringify(oHeader);
const sPayload = JSON.stringify(oPayload);
const sdkJWT = KJUR.jws.JWS.sign("HS256", sHeader, sPayload, sdkSecret);
return sdkJWT;
}
And then i used the client.join() function to join the session:
try {
const data = await this.videoClient.join(
"Cool Cars",
this.generateSignature(
"2EfANX7gRQmoLywtQLDjnA",
"kMFq0o8zJxWf4JPZGneRneLsRCpfKpqrWzln",
"Cool Cars",
1,
"testmeet123",
"Kashan Asim"
),
"Kashan Asim",
"testmeet123"
);
this.stream = this.videoClient.getMediaStream();
console.log(data);
} catch (error) {
console.log(error);
}
But it gave me error code 200
and i tried these ways to initialize the client object
this.videoClient.init(
"en-US",
// 'CDN'
// `https://bbb0-58-65-212-5.in.ngrok.io/node_modules/@zoom/videosdk/dist/lib`
// `http://localhost:4200/node_modules/@zoom/videosdk/dist/lib/`
`E:\\Projects/video-signing-app/node_modules/@zoom/videosdk/dist/lib`
);
I would really appreciate if you help me find the problem!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.