C# windows SDK - Mute - Unmute Error

Unable to Mute Unmute Properly.
To mute all users, I have to write:
meetingAudioController.MuteAudio(0, false); //here if i specify User Id, it gives me error: SDKERR_WRONG_USEAGE

Also this above line, mutes my speaker & I am unable to turn on my speakers back until zoom is in play

Hi @wbx440, thanks for the post.

Please note that I have moved your post over to the #desktop-meeting-sdk:windows category. :slightly_smiling_face:

One cause of this error when trying to unmute others is when the current user does not have the ability to unmute other users in the meeting. Can you please confirm whether or not the user is the host of the meeting when trying to do this?

Thanks!

I found multiple issues here…

Issue 1. If I mute all users using this code:
meetingAudioController.MuteAudio(0, false); //so no one can turn on his mute
Then I have to unmute them using this code:
meetingAudioController.MuteAudio(0, true); // so anyone who want to speak will be able to turn on his mic

Mute or Unmute using user id like this:
meetingAudioController.MuteAudio(UserId, true or false); //will not work
meetingAudioController.UnMuteAudio(UserId); //will not work

Even here SDKError shows success.

Issue 2: Leave meeting is not working properly, I am the host & trying to leave meeting using:
cZoomSDKWrap.GetMeetingServiceWrap().Leave(LeaveMeetingCmd.END_MEETING);
cZoomSDKWrap.GetMeetingServiceWrap().Leave(LeaveMeetingCmd.LEAVE_MEETING);

Here whether I use Leave Meeting or End Meeting Command, both or 1 at a time, in all cases, meeting not get ended…

Now here another issue come into picture that other users available in the meeting I think converted to be the host & now when I start meeting again, it works like I am joining the meeting & on trying mute - unmute not, it says: SDKERR_WRONG_USEAGE

So now 1st issue is resolved but because of 2nd issue, I face 1st issue.

So finally here the issue is that ending a meeting (when I am the host) is not actually ending meeting for all…

FYI: I have started meeting using this code:

StartParam4NormalUser normalUser = new StartParam4NormalUser();
normalUser.meetingNumber = MY_PERSONAL_MEETING_NO;
normalUser.isDirectShareDesktop = true;

StartParam startParam = new StartParam();
startParam.normaluserStart = normalUser;
startParam.userType = SDKUserType.SDK_UT_NORMALUSER;

SDKError sdkErr = CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().Start(startParam);
//sdkErr → its success

Hi @wbx440,

If you are unable to end the meeting when leaving, it is possible that the current user is not the host of the meeting. Can you please confirm whether or not the user is the host before calling the Leave function by checking the value of IsHost for the current user?

Thanks!