# When screen sharing, the sessionIdleTimeoutMins parameter of the join command is being ignored

**URL:** <https://devforum.zoom.us/t/when-screen-sharing-the-sessionidletimeoutmins-parameter-of-the-join-command-is-being-ignored/111990>\
**Category:** Video SDK\
**Created:** [June 14, 2024, 8:36pm UTC](https://devforum.zoom.us/t/when-screen-sharing-the-sessionidletimeoutmins-parameter-of-the-join-command-is-being-ignored/111990 "2024-06-14T20:36:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopher.bricker](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@christopher.bricker](https://devforum.zoom.us/u/christopher.bricker)\
**Post date:** [June 14, 2024, 8:36pm UTC](https://devforum.zoom.us/t/when-screen-sharing-the-sessionidletimeoutmins-parameter-of-the-join-command-is-being-ignored/111990/1 "2024-06-14T20:36:08Z")

</div>

### Format Your New Topic as Follows:

**1.11.6**  
_Share the Video SDK type and version you’re working with to give relevant context._

**Description**  
_We have a user that wants to share their screen for hours at a time where the screen is displayed is not updated or changed while having discussions. They were running into the session ending after 40 minutes. We changed the sessionIdleTimeoutMins parameter of the VideoClient join method to 10 hours. The session is still timing out after 40 minutes._

Here is a code sample of how we call it:

private static readonly sessionIdleTimeoutMins = 600;

```
private async ensureClientAndSession(identity: string, activityId: string, role: SessionRole): Promise<void> {
    const token = await this.getScreenSharingToken(identity, activityId, role);
    this.client = ZoomVideo.createClient();
    return this.ngZone.runOutsideAngular(async () => {
        await this.client.init('en-US', 'Global', { patchJsMedia: true, stayAwake: true });
        await this.client.join(activityId, token, identity, '', ZoomMediaSharingService.sessionIdleTimeoutMins);
        this.stream = this.client.getMediaStream();
    });

```

We were wondering if we were calling it wrong or not understanding how it works properly. We know that there is a 40 minute timeout on free Zoom meetings but our developer account is a paid account.

---

<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:** [June 17, 2024, 3:08am UTC](https://devforum.zoom.us/t/when-screen-sharing-the-sessionidletimeoutmins-parameter-of-the-join-command-is-being-ignored/111990/2 "2024-06-17T03:08:50Z")

</div>

Hey @christopher.bricker

Thanks for your feedback.

Were there any other users in this session besides this one?

Could you share the problematic Session ID with us for troubleshooting purposes?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![christopher.bricker](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@christopher.bricker](https://devforum.zoom.us/u/christopher.bricker)\
**Post date:** [June 20, 2024, 4:56pm UTC](https://devforum.zoom.us/t/when-screen-sharing-the-sessionidletimeoutmins-parameter-of-the-join-command-is-being-ignored/111990/3 "2024-06-20T16:56:08Z")

</div>

@vic.yang

Thanks for your update.

Yes, there is always at least one user in the session.

I don’t have a session ID I can offer.

I just ran another test with enhanced logging and both the host and the participant received a connection-change event after 40 minutes with a payload of state: Closed, reason: free meeting ended. It was my impression that there were not any free Video SDK accounts since a credit card (or corporate payment, which should be how our account is charged) is required.

Could it be that our account is configured incorrectly?

Thanks,  
Chris

---

<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:** [June 21, 2024, 4:11am UTC](https://devforum.zoom.us/t/when-screen-sharing-the-sessionidletimeoutmins-parameter-of-the-join-command-is-being-ignored/111990/4 "2024-06-21T04:11:47Z")

</div>

@christopher.bricker I’ll PM you for some details on your video SDK account
