# Video SDK problem when creating session (playing with sample)

**URL:** <https://devforum.zoom.us/t/video-sdk-problem-when-creating-session-playing-with-sample/66317>\
**Category:** Windows\
**Created:** [March 23, 2022, 7:52pm UTC](https://devforum.zoom.us/t/video-sdk-problem-when-creating-session-playing-with-sample/66317 "2022-03-23T19:52:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob281](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jacob281](https://devforum.zoom.us/u/jacob281)\
**Post date:** [March 23, 2022, 7:52pm UTC](https://devforum.zoom.us/t/video-sdk-problem-when-creating-session-playing-with-sample/66317/1 "2022-03-23T19:52:41Z")

</div>

I have started learning Video SDK and have failure in creating session.  
When I run the sample program and create the session, it shows the camera capture for a short time, then shows a message:  
Unable to join or create session.Please  
try again.(Error Code: 2009)

The SDK documentation says about this error code:  
ZoomVideoSDKErrors\_Meeting\_Not\_Started 2009 The Session that you are trying to start did not start successfully. Please try again.

I tried again many times and the code is still the same.

Could you please tell me what should I do to proceed?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 24, 2022, 9:01pm UTC](https://devforum.zoom.us/t/video-sdk-problem-when-creating-session-playing-with-sample/66317/2 "2022-03-24T21:01:53Z")

</div>

Hi @jacob281, thanks for using the dev forum.

Can you please provide some additional context around how you’re trying to join the session? At a minimum, we would need the JWT you’re passing into the SDK, the session name, and the version of the SDK you’re using.

Thanks!

---

<div class="post-metadata">

**Author:** ![jacob281](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jacob281](https://devforum.zoom.us/u/jacob281)\
**Post date:** [March 25, 2022, 5:21am UTC](https://devforum.zoom.us/t/video-sdk-problem-when-creating-session-playing-with-sample/66317/3 "2022-03-25T05:21:09Z")

</div>

Hi.  
I am running exactly the demo app as is, without any modifications: zoom-video-sdk-windows-1.2.2\Sample-Libs\x86\demo\videosdk\_demo\videosdk\_demo.sln.

SDK version is v1.2.2 (1185), as shown in the file zoom-video-sdk-windows-1.2.2\version.txt.

Session name is s1.

Token:  
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBfa2V5IjoiOVJWdVNGZk5QamNhT3VMVjk2Zk5sbjZRVkUxREEzOElKMEFxIiwidmVyc2lvbiI6MSwicm9sZV90eXBlIjowLCJpYXQiOjE2NDgwNjc4MzAsImV4cCI6MTY0ODE1NDIzMCwidHBjIjoiczEifQ.iYzaMUfxnJon5j7Onn88NghnwqP517nGAr6TlvdJ-eQ

Thank you.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 25, 2022, 6:54pm UTC](https://devforum.zoom.us/t/video-sdk-problem-when-creating-session-playing-with-sample/66317/4 "2022-03-25T18:54:54Z")

</div>

Hi @jacob281,

Thanks for the additional information. You are seeing this error due to the `role_type` field being set to 0. Currently, if you try joining a session as a regular participant, it will fail unless the host has already started the session. If you change the `role_type` value to 1, you should be able to start the session.

It is also worth noting that the SDK’s behavior will change in a future release to allow regular participants to join sessions before the host has started them.

Thanks!

---

<div class="post-metadata">

**Author:** ![jacob281](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jacob281](https://devforum.zoom.us/u/jacob281)\
**Post date:** [March 25, 2022, 7:31pm UTC](https://devforum.zoom.us/t/video-sdk-problem-when-creating-session-playing-with-sample/66317/5 "2022-03-25T19:31:13Z")

</div>

Thank you very much.  
I changed role\_type to 1 and it worked.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 28, 2022, 9:17pm UTC](https://devforum.zoom.us/t/video-sdk-problem-when-creating-session-playing-with-sample/66317/6 "2022-03-28T21:17:19Z")

</div>

You’re welcome, glad to hear that fixed it!

Please don’t hesitate to reach back out in a new topic with any additional questions. 🙂

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [March 28, 2022, 9:17pm UTC](https://devforum.zoom.us/t/video-sdk-problem-when-creating-session-playing-with-sample/66317/7 "2022-03-28T21:17:22Z")

</div>


