Description
I am trying to include a webinar meeting in my website (built in Nextjs) using sdk app type. as shown here SDK Authorization
I am using this code to generate the signature and everything seems to be going well.
try {
const iat = Math.round((new Date().getTime() - 30000) / 1000);
const exp = iat + 60 * 60 * 2;
const oHeader = { alg: "HS256", typ: "JWT" };
const oPayload = {
sdkKey: sdkKey,
mn: meetingNumber,
role: role,
iat: iat,
exp: exp,
appKey: sdkKey,
tokenExp: iat + 60 * 60 * 2,
};
const sHeader = JSON.stringify(oHeader);
const sPayload = JSON.stringify(oPayload);
const sdkJWT = KJUR.jws.JWS.sign("HS256", sHeader, sPayload, sdkSecret);
However, when I try to join the window it freezes on “Joining Meeting…” and I don’t get any error messages or anything similar.
I have already read similar posts and I am sure that I have included all the required parameters and in the correct format.
ZoomMtg.init({
leaveUrl: leaveUrl,
isSupportAV: true,
success: async (success) => {
const res = await axios.post("url", {
sdkKey,
sdkSecret,
meetingNumber,
role: 0,
});
ZoomMtg.join({
signature: res.data.signature,
meetingNumber,
userName: "someoneUsername",
sdkKey,
userEmail: "someone@mail.com",
passWord: "someonePassword",
success: (success) => {
console.info(success);
},
error: (error) => {
console.info(error);
},
});
},
error: (error) => {
console.info(error);
},
});
Please let me know what is the problem here!
Browser Console Error
No Errors displayed
Which Web Meeting SDK version?
@zoomus/websdk2.4.0