Join Meeting as co-host

Hi Dev forum.

We are using Windows SDK wrapper. We want to assign co-host when user join meeting via SDK.

According to manual on other post:

“virtual SDKError AssignCoHost(unsigned int userid) = 0;
The IMeetingParticipantController class(ZOOM Windows SDK: IMeetingParticipantsController Class Reference 13) has all interfaces that you would need to CRUD a participant with his/her user role.”

We did try:
Array users = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().GetParticipantsList();
foreach (var item in users)
{
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().AssignCoHost((uint)item);
var check = ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().CanBeCoHost((uint)item);
Console.WriteLine(check);
}

But there is error message: SDKERR_WRONG_USEAGE"

Is there any method to Join Meeting as co-host via SDK ? Please advise.

Thanks.

Hey @anhnt,

Thanks for using the dev forum!

Which one of the calls is producing a WRONG_USAGE error?

Thanks!
Michael

Hi @Michael_Condon ,
both of these functions have that error:
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().AssignCoHost((uint)item);
and
ZOOM_SDK_DOTNET_WRAP.CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetMeetingParticipantsController().CanBeCoHost((uint)item);

Hey @minhbn,

Is the user calling these functions the host or a participant?

Thanks!
Michael

Hi @Michael_Condon ,
The user calling these functions is participant. Because I join to the meeting without login by Zoom app which by zoom c# wrap. I want to auto set the participant is cohost when the participant joined a meeting.

Hey @minhbn,

Only a host can call these functions.

Thanks!
Michael