# Issue while creating Sub Sessions using Zoom Video SDK

**URL:** <https://devforum.zoom.us/t/issue-while-creating-sub-sessions-using-zoom-video-sdk/78816>\
**Category:** Web\
**Created:** [November 15, 2022, 11:50am UTC](https://devforum.zoom.us/t/issue-while-creating-sub-sessions-using-zoom-video-sdk/78816 "2022-11-15T11:50:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanth](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@srikanth](https://devforum.zoom.us/u/srikanth)\
**Post date:** [November 15, 2022, 11:50am UTC](https://devforum.zoom.us/t/issue-while-creating-sub-sessions-using-zoom-video-sdk/78816/1 "2022-11-15T11:50:10Z")

</div>

We are creating Sub Sessions using Zoom Video SDK.

Reference Link:

> **[Subsessions](https://marketplace.zoom.us/docs/sdk/video/web/advanced/breakout-rooms/)**
>
> 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.

We have created Sub Session with distribute users evenly to each sub session.

Example:  
If there are a total of 12 ppl, we are creating subsession with 4 groups of 3.

Following Syntax used:  
const subsession = client.getSubsessionClient();

subsession.createSubsessions([‘subsessionName1’, ‘subsessionName2’], 1)

_Problem:_  
We are trying to open the Sub Session using the following syntax

subsession.openSubsessions([{ subsessionId: 1, sessionName: ‘sessionName1’ }, { subsessionId: 2, sessionName: ‘sessionName2’ }], { isTimerEnabled: true, timerDuration: 1800 })

Even after entering sub sessions, **user is able to hear from all groups as in normal main session**.

We can see different subsessions are created with respective set of groups in them, but while verifying if users are split into submissions using following syntax:

subsession.getSubsessionList()

We can see in “userList” the “isInSubsession” is always false. Why are we getting the “isInSubsession” as false?

“Sample Response”:  
[  
{  
subsessionId: “{BA4037E3-0566-2A1E-98C6-BBCAFD847689}”,  
subsessionName: “test-03112022-4-97-1”  
userList:[  
{  
avatar: undefined  
displayName: “Rajkumar\_8 Ganesan”  
isInSubsession: false  
userId: 33555456  
}  
]  
}  
]

**Which Web Video SDK version?**  
We are using **Zoom Video SDK 1.5.0**

**Video SDK Code Snippets**  
subsession.getSubsessionList()

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

- Device: iMac
- OS: MacOS Monterey Version 12.4
- Browser: Chrome
- Browser Version: Version 107.0.5304.110 (Official Build) (arm64)

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [November 16, 2022, 7:34am UTC](https://devforum.zoom.us/t/issue-while-creating-sub-sessions-using-zoom-video-sdk/78816/2 "2022-11-16T07:34:40Z")

</div>

Hey @srikanth

Thanks for your feedback.

Currently, only the host can see the in subsession status of the users. And the Video SDK Web provides `main-session-user-updated` event to get the latest status of the user.

> <https://github.com/zoom/videosdk-web-sample/blob/master/react-demo/src/feature/subsession/hooks/useSubsession.ts#L67>

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![srikanth](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@srikanth](https://devforum.zoom.us/u/srikanth)\
**Post date:** [November 17, 2022, 7:04am UTC](https://devforum.zoom.us/t/issue-while-creating-sub-sessions-using-zoom-video-sdk/78816/3 "2022-11-17T07:04:41Z")

</div>

Problem: We can hear from all users in other Subsessions

We tried this,

Opened the Sub sessions using the following syntax;

subsession.openSubsessions([{ subsessionId: 1, sessionName: ‘sessionName1’ }, { subsessionId: 2, sessionName: ‘sessionName2’ }], { isTimerEnabled: true, timerDuration: 1800 })

Which did not return any error also did not return any success message.

But while check the below,

subsession.getSubsessionList()

I can see users are split.

But all users voice are heard form other Subsessions.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 30, 2022, 11:17pm UTC](https://devforum.zoom.us/t/issue-while-creating-sub-sessions-using-zoom-video-sdk/78816/4 "2022-11-30T23:17:48Z")

</div>

Hey @srikanth ,

Instead of passing in a JSON array for the first argument, try passing in the response of the subsessions.getSubsessionsList() function.

> **[SubsessionClient | Zoom Video SDK for Web - 1.5.5](https://marketplacefront.zoom.us/sdk/custom/web/modules/subsessionclient.html#getsubsessionlist)**
>
> Documentation for Zoom Video SDK for Web - 1.5.5

We are updating the docs to be more clear about that. 🙂

Let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [December 16, 2022, 6:28am UTC](https://devforum.zoom.us/t/issue-while-creating-sub-sessions-using-zoom-video-sdk/78816/5 "2022-12-16T06:28:23Z")

</div>

Hey @srikanth

Could you check the `isInSubsession` attribute in each user item?

If the `isAutoJoinRoom` of subsession options is not set, the assigned users need to manually join the subsessions with `subsessionClient.joinSubsession(subsessionId)`. That means they are still in the main session until manually join the subsessions. `isInSubsession` is the flag that shows whether the users are actually in the subsession now.

Thanks  
Vic

---

<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:** [January 15, 2023, 4:28pm UTC](https://devforum.zoom.us/t/issue-while-creating-sub-sessions-using-zoom-video-sdk/78816/6 "2023-01-15T16:28:37Z")

</div>

Closed on January 15, 2023, 4:28pm UTC

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