Description
I have errors when using the getBreakoutRoomList function.
When I try to get the breakoutroom list and all attendees, i’m getting en error 3003, I saw that this error was related to the fact that only the host can call this function but when i’m using getCurrentUser, isHost is true.
Half of the time I have a js error with this function. (every time I want to use a timeout or an interval to delay the result)
Browser Console Error
error when using timeout and the function : ERROR TypeError: Cannot add property attendees, object is not extensible
error when using the function : error 3003
Which Web Meeting SDK version?
2.1.1
Meeting SDK Code Snippets
ZoomMtg.init({
leaveUrl: environment.frontendUrl + this.redirectUrl,
success: () => {
ZoomMtg.join({
signature,
apiKey,
meetingNumber: this.meeting!.id,
userName: this.userService.user!.username,
userEmail: this.userService.user!.email,
passWord: this.meeting!.password,
tk: '',
// eslint-disable-next-line
success: () => {
console.log('joinmeeting success')
},
error: (error: any) => {
console.log(error);
},
});
setTimeout(() => {
// always fail: error 3003 or js error
// in this case js error cause of the timeout
ZoomMtg.getBreakoutRoomList({
success: (success: any) => {
console.log("getBreakoutRoomList", success)
},
error: (error: any) => {
console.log(error)
}
});
// success
ZoomMtg.getCurrentUser({
success: (success: any) => {
console.log('currentuser', success);
}
});
// success
ZoomMtg.getAttendeeslist({
success: (success: any) => {
console.log('currentAttendees', success);
}
});
}, 10000)
},
error: (error: any) => {
console.log(error);
},
});
Device (please complete the following information):
- Browser: Chrome
Additional context
The function is always called inside the success callback of the init function. I tried putting this function inside and outside the join function. I want to get the breakout room list of attendees every 10ish second.