Just spotted two syntax error in ZOOM Web Client SDK - This page to be exact .
const meetConfig = {
apiKey: '3239845720934223459'***,***
meetingNumber: '123456789',
leaveUrl: 'https://yoursite.com/meetingEnd',
userName: 'Firstname Lastname',
passWord: 'password',
role: 1 // 1 for host
};
Comma is missing after apiKey
function getSignature(meetConfig) {
fetch(`${YOUR_SIGNATURE_ENDPOINT}`, {
method: 'POST',
body: JSON.stringify({ meetingData: meetConfig })
})
.then(result => result.text())
.then(response => {
ZoomMtg.init({
leaveUrl: meetConfig.leaveUrl,
isSupportAV: true,
success: function() {
ZoomMtg.join({
signature: response,
apiKey: meetConfig.apiKey,
meetingNumber: meetConfig.meetingNumber,
userName: meetConfig.userName,
// password optional; set by Host
passWord: meetConfig.passWord,
error(res) {
console.log(res)
}
})
}
})
})
}
One ) is missing…