I am using Zoom web sdk version 2.7.1.
The code is:-
$.ajax({
type: “GET”,
url: appGetSecureURL(‘/api/web/fetchzoomzaktoken/’),
success: function(a){
debugger;
console.log(a);
var data=$.parseJSON(a)
var zaktoken=data.zaktoken;
const client = ZoomMtgEmbedded.createClient();
let meetingSDKElement = document.getElementById(‘root’);
//client.init({ zoomAppRoot: meetingSDKElement, language: ‘en-US’ });
client.init({
zoomAppRoot: meetingSDKElement,
language: 'en-US',
customize: {
video: {
isResizable: true,
viewSizes: {
default: {
width: 1500,
height: 800
}
}
}
}
})
client.join({
sdkKey: 'sdkkey',
signature: jwttoken,
meetingNumber: '88539350532',
password: '697236',
userName: 'Dpsdoctor',
zak:zaktoken
})
$("#root").removeAttr("style");
client.inMeetingServiceListener('onUserJoin', function (data) {
debugger;
console.log(data);
});
client.inMeetingServiceListener('onMeetingStatus', function (data) {
debugger;
// {status: 1(connecting), 2(connected), 3(disconnected), 4(reconnecting)}
console.log(data);
});
//console.log(jwttoken);
}
});
I am able to start the meeting as a host . But the issue is that in the console I can see an error :- client.inMeetingServiceListener is not a function
Though If I execute client.getAttendeesList({}) , I can see the attendees list . Let me know how to resolve this issue.