# Cant Create a Video Meeting as a host

**URL:** <https://devforum.zoom.us/t/cant-create-a-video-meeting-as-a-host/95824>\
**Category:** Windows\
**Created:** [September 26, 2023, 3:01pm UTC](https://devforum.zoom.us/t/cant-create-a-video-meeting-as-a-host/95824 "2023-09-26T15:01:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![osamu](https://avatars.discourse-cdn.com/v4/letter/o/57b2e6/32.png) [@osamu](https://devforum.zoom.us/u/osamu)\
**Post date:** [September 26, 2023, 3:01pm UTC](https://devforum.zoom.us/t/cant-create-a-video-meeting-as-a-host/95824/1 "2023-09-26T15:01:15Z")

</div>

**Description**  
Hi, im creating a windows application, using ZoomSDK Windows…  
right now im using version 12.8 and we have no problem at all…  
because of the minimum requirement, i try to upgrade the version to version 13.5

when i click login button on my application, i run Oauth sequence to get  
userZAK  
userID  
userName  
meetingNumber

and im using  
zoomuserType =ZOOM\_SDK\_NAMESPACE::ZoomUserType\_APIUSER

i got no error and the meeting start completely normal on 12.8  
the user who is using this app, will start a meeting as a HOST…  
using this :

ZOOM\_SDK\_NAMESPACE::StartParam startParam = {};  
startParam.userType = ZOOM\_SDK\_NAMESPACE::SDK\_UT\_WITHOUT\_LOGIN;

ZOOM\_SDK\_NAMESPACE::StartParam4WithoutLogin startMeetingWithoutLoginParam = {};  
startMeetingWithoutLoginParam.zoomuserType = ZOOM\_SDK\_NAMESPACE::ZoomUserType\_APIUSER;  
startMeetingWithoutLoginParam.userZAK = zakTokenWide.c\_str();  
startMeetingWithoutLoginParam.userID = userIdWide.c\_str();  
startMeetingWithoutLoginParam.userName = userNameWide.c\_str();  
startMeetingWithoutLoginParam.meetingNumber = user.personalMeetingId();

```
startParam.param.withoutloginStart = startMeetingWithoutLoginParam;

```

but in the version 13.5 above (i already try 14.5 too)  
if im using the same method, the user will join a meeting as a PARTICIPANT  
the point is, there are some change on the SDK, that i dont know about, and what should i add to the param so, the user will start a meeting as a Host not a participant?

**Device (please complete the following information):**

- Device: [PC]
- OS: [e.g. Windows 10]

Regards, Takei Osamu

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 27, 2023, 5:11am UTC](https://devforum.zoom.us/t/cant-create-a-video-meeting-as-a-host/95824/2 "2023-09-27T05:11:20Z")

</div>

@osamu ,

Do cross check the guide here

> **[Windows SDK functions](https://developers.zoom.us/docs/meeting-sdk/windows/use-meeting-sdk/windows-sdk-functions/#start-a-meeting-for-a-non-logged-in-user)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Alternatively, could you try upgrade to newer version of the SDK as well?

---

<div class="post-metadata">

**Author:** ![osamu](https://avatars.discourse-cdn.com/v4/letter/o/57b2e6/32.png) [@osamu](https://devforum.zoom.us/u/osamu)\
**Post date:** [September 27, 2023, 6:39am UTC](https://devforum.zoom.us/t/cant-create-a-video-meeting-as-a-host/95824/3 "2023-09-27T06:39:34Z")

</div>

@chunsiong.zoom thank you for the reply

yes i already check the guide and its the same

ZOOM\_SDK\_NAMESPACE::StartParam startParam = {};  
startParam.userType = ZOOM\_SDK\_NAMESPACE::SDK\_UT\_WITHOUT\_LOGIN;

ZOOM\_SDK\_NAMESPACE::StartParam4WithoutLogin startMeetingWithoutLoginParam = {};  
startMeetingWithoutLoginParam.zoomuserType = ZOOM\_SDK\_NAMESPACE::ZoomUserType\_APIUSER;  
startMeetingWithoutLoginParam.userZAK = zakTokenWide.c\_str();  
startMeetingWithoutLoginParam.userID = userIdWide.c\_str();  
startMeetingWithoutLoginParam.userName = userNameWide.c\_str();  
startMeetingWithoutLoginParam.meetingNumber = user.personalMeetingId();

```
startParam.param.withoutloginStart = startMeetingWithoutLoginParam;

if (SDKInterfaceWrap::GetInst().IsSelectCustomizedUIMode() && m_pAppEvent)
	m_pAppEvent->InitCustomizedUI();

ZOOM_SDK_NAMESPACE::SDKError startMeetingCallReturnValue(ZOOM_SDK_NAMESPACE::SDKERR_UNKNOWN);

startMeetingCallReturnValue = m_loggedInUIWorkFlow.StartMeeting(startParam);

if(startMeetingCallReturnValue == ZOOM_SDK_NAMESPACE::SDKError::SDKERR_SUCCESS)
{
	m_bConnectToMeeting = true;
	m_bInMeeting = false;
}

```

i got no error, and i can join the meeting, but as a participant,  
 ![Capture](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/5/e5a9cddc72442b3d150aed0c600d84094483eb48.jpeg)

on the 12.8, the meeting start with no problem as a host… and the code are the same, so i am really confused right now…

and yes, i try to use newer SDK and upgrading from 12.8 to 13.5 for the minimum requirement for this november, and i already tried the 14.5 its the same the meeting joined as a participant…

i can’t try newer version beyond that for now, because starting 14.10 Auth Param is deprecated, and i cant use directly APP key and APP secret, ill try to deal that later, but for now ill try to fulfill the minimum requirement first for this november

regards, takei osamu

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 28, 2023, 3:28am UTC](https://devforum.zoom.us/t/cant-create-a-video-meeting-as-a-host/95824/4 "2023-09-28T03:28:31Z")

</div>

@osamu ,

I’ve just tried on my windows machine, and has managed to successfully start a meeting.

1. Get a fresh, host’s ZAK token from `/users/:userId/token?type=zak&ttl=7200`. I’m using POSTMAN to do so

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/0/40af6e0df56faf278e646d3ac05618a5729905e4.png)

1. Use the below code base to start meeting.

```auto
		ZOOM_SDK_NAMESPACE::StartParam startMeetingParam;
		startMeetingParam.userType = ZOOM_SDK_NAMESPACE::SDK_UT_WITHOUT_LOGIN;

		StartParam4WithoutLogin startMeetingWithoutLoginParam = startMeetingParam.param.withoutloginStart;
		startMeetingParam.userType = ZOOM_SDK_NAMESPACE::SDK_UT_WITHOUT_LOGIN;

		startMeetingWithoutLoginParam.meetingNumber = meeting_number;
		startMeetingWithoutLoginParam.zoomuserType = ZoomUserType_APIUSER;
		startMeetingWithoutLoginParam.userName = L"RawDataSender(VirtualCam)";
		startMeetingWithoutLoginParam.userZAK = L"xxxxxx.yyyyyyy.zzzzzzz";
		startMeetingWithoutLoginParam.customer_key = NULL;
		startMeetingWithoutLoginParam.hDirectShareAppWnd = NULL;
		startMeetingWithoutLoginParam.isAudioOff = true;
		startMeetingWithoutLoginParam.isVideoOff = true;
		startMeetingWithoutLoginParam.isDirectShareDesktop = false;

		startMeetingParam.param.withoutloginStart = startMeetingWithoutLoginParam;

		//start meeting
		if ((err = meetingService->Start(startMeetingParam)) != SDKError::SDKERR_SUCCESS) ShowErrorAndExit(err);
		else std::cout << "Joining Meeting..." << std::endl;

```

I’m just thinking about the possibility that .c\_str() might be returning something invalid?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 28, 2023, 1:28pm UTC](https://devforum.zoom.us/t/cant-create-a-video-meeting-as-a-host/95824/5 "2023-10-28T13:28:34Z")

</div>

Closed on October 28, 2023, 1:28pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
