when user logged in to the meeting via on Web SDK. i want to check whether user is AUTHORIZED or NOT.
So i added this code. Here is my question
When user is NON-AUTHORIZED person . then automatically he or she should be delete by the system or Blacklist them , how can i accomplish this task using WEB SDK ?
ZoomMtg.inMeetingServiceListener('onUserJoin', function (data) {
console.log("ON USER JOIN");
console.log('inMeetingServiceListener onUserJoin', data);
var loggedUserId = data.userId;
var loggedUserName = data.userName;
$.ajax({
type: "POST",
url: "{{url('meeting/web/checkAuthorizedUser')}}",
data: {
"loggedUserId": loggedUserId,
"loggedUserName": loggedUserName,
'_token': '{{csrf_token()}}',
},
dataType: 'json',
success: function (data) {
alert(data);
},
error: function (data) {
console.log(data);
}
});
});
You can use the expel() method to remove a particular user from the meeting. Note that you must have kick privileges (Be the host or co-host) in order to do this.
ZoomMtg.expel({
userId: 123456 //You can get the ID of the user from the onUserJoin event data.
});
@digix.sameera
I notice that you are hard coding the value 16779264 however you should instead get this userID from the event data variable, and expel them if they are not allowed to be in the meeting.