We are adding an external html button to leave the meeting. We are able to init and join a meeting fine, however we want to be able to run sdk functions to interact with the meeting from custom buttons. The main one is to allow user to leave the meeting with a custom button located outside the meeting iframe. The javascript function is:
function leave()
{
ZoomMtg.leaveMeeting({
leaveUrl: ‘/index.html’,
success: function(response) {
console.log(response);
},
error: function (err) {
console.log(err);
}
});
}
We are geting the following error:
errorCode: 3008
errorMessage: “Please init meeting first!”
method: “leaveMeeting”
result: null
status: false
We are using the CDN files Version 1.7.10
This issue is happening in all browsers and also in many other ZoomMgt functions.