Video SDK Type and Version
Video SDK 1.10.8 for Web
Description
I need to mute my MeetingUserRole.participant
role upon joining. But muting does not work without sleep for at least a second. This is a major problem since the meeting can be disturbed by the mic of such users for one second.
async setupAudio() {
switch (this.myRole) {
case MeetingUserRole.superHost:
await this.startAudio();
store.dispatch(Zoom.startUserMic(this.myProviderId));
break;
case MeetingUserRole.host:
await this.startAudio();
await this.stream.muteAudio();
break;
case MeetingUserRole.participant:
await this.startAudio();
await sleep(1000); // Without sleeping, mute using below function does not work
await this.stream.muteAudio();
break;
default:
break;
}
}
Error?
No errors in the console.
Troubleshooting Routes
I have tried the same in sample app (GitHub - zoom/videosdk-web-sample: Zoom Video SDK web sample). Does not work.