Description
i am unable to get participant names and time
Error
-
{method: “getAttendeeslist”, status: false, errorCode: 3008, errorMessage: “Please join meeting first!”, result: null}
-
errorCode: 3008
-
errorMessage: “Please join meeting first!”
-
method: “getAttendeeslist”
-
result: null
-
status: false
Which version?
i am trying to get participant list in console.log but its showing error message.
Screenshots
Additional context
Add any other context about the problem here.
CODE starts here
(function(){
console.log('checkSystemRequirements');
console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
testTool = window.testTool;
document.getElementById('api_key').value ;
document.getElementById('api_secret').value ;
document.getElementById('display_name').value ;//= "CDN" + ZoomMtg.getJSSDKVersion()[0] + testTool.detectOS() + "#" + testTool.getBrowserInfo();
document.getElementById('meeting_number').value = testTool.getCookie("meeting_number");
document.getElementById('meeting_pwd').value = testTool.getCookie("meeting_pwd");
if (testTool.getCookie("meeting_lang")) document.getElementById('meeting_lang').value = testTool.getCookie("meeting_lang");
document.getElementById('meeting_lang').addEventListener('change', function(e){
testTool.setCookie("meeting_lang", document.getElementById('meeting_lang').value);
$.i18n.reload(document.getElementById('meeting_lang').value);
ZoomMtg.reRender({lang: document.getElementById('meeting_lang').value});
});
document.getElementById('clear_all').addEventListener('click', function(e) {
testTool.deleteAllCookies();
document.getElementById('display_name').value = '';
document.getElementById('meeting_number').value = '';
document.getElementById('api_key').value ='';
document.getElementById('api_secret').value='';
document.getElementById('meeting_pwd').value = '';
document.getElementById('meeting_lang').value = 'en-US';
document.getElementById('meeting_role').value = 0;
});
document.getElementById('join_meeting').addEventListener('click', function(e){
e.preventDefault();
if(!this.form.checkValidity()){
alert("Enter Name and Meeting Number");
return false;
}
var meetConfig = {
apiKey: document.getElementById('api_key').value ,
apiSecret: document.getElementById('api_secret').value ,
meetingNumber: parseInt(document.getElementById('meeting_number').value),
userName: document.getElementById('display_name').value,
//userName:display_name,
passWord: document.getElementById('meeting_pwd').value,
//leaveUrl: "http://127.0.0.1:9999/index.html",
leaveUrl: "http://localhost/xyz/CDN/join.php",
// leaveUrl: 'http://www.zoom.us',
role: parseInt(document.getElementById('meeting_role').value, 10)
};
testTool.setCookie("meeting_number", meetConfig.meetingNumber);
testTool.setCookie("meeting_pwd", meetConfig.passWord);
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: 'http://www.zoom.us',
//leaveUrl:'http://127.0.0.1:9999/index.html',
leaveUrl: "http://localhost/xyz/CDN/join.php",
success: function () {
ZoomMtg.join(
{
meetingNumber: meetConfig.meetingNumber,
userName: meetConfig.userName,
signature: signature,
apiKey: meetConfig.apiKey,
passWord: meetConfig.passWord,
success: function(res){
$('#nav-tool').hide();
console.log('join meeting success');
},
error: function(res) {
console.log(res);
}
}
);
ZoomMtg.getAttendeeslist({
//meetingNumber: meetConfig.meetingNumber,
success: function (res) {
console.log(“get getAttendeeslist”);
},
error: function(res) {
console.log(res);
}
});
},
error: function(res) {
console.log(res);
}
});
});
})();