Hello
I take a look at the sample web app, but it does not tell how to start a meeting. It only shows how to join a meeting with meeting number.
I have created my JWT app and get the api key and secret code.
I made a js code below and I get the following error.
I also tried to set ROLE to 1.
**Meeting is not started error 3008 **
<script>
(function () {
console.log('checkSystemRequirements');
console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));
ZoomMtg.setZoomJSLib('https://dmogdx0jrul3u.cloudfront.net/1.7.2/lib', '/av');
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
var API_KEY = 'MY_APIKEY';
var API_SECRET = 'MY_SECRET';
const meetConfig = {
apiKey: API_KEY,
apiSecret: API_SECRET,
meetingNumber: '',
leaveUrl: 'MY_URL',
userName: 'Alper',
userEmail: '',
passWord: '',
role: 0
};
var signature = ZoomMtg.generateSignature({
meetingNumber: meetConfig.meetingNumber,
apiKey: meetConfig.apiKey,
apiSecret: meetConfig.apiSecret,
role: meetConfig.role,
success: function (res) {
console.log(res.result);
}
});
ZoomMtg.init({
leaveUrl: 'MY_URL',
isSupportAV: true,
success: function () {
ZoomMtg.join(
{
meetingNumber: meetConfig.meetingNumber,
userName: meetConfig.userName,
signature: signature,
apiKey: meetConfig.apiKey,
userEmail: meetConfig.userEmail,
passWord: meetConfig.passWord,
success: function (res) {
// $('#nav-tool').hide();
console.log('join meeting success');
},
error: function (res) {
console.log(res);
}
}
);
},
error: function (res) {
console.log(res);
}
});
})();
Any js code sample to start and join a meeting will be very helpful.
Thank you.