# Suspended state detection

**URL:** <https://devforum.zoom.us/t/suspended-state-detection/118988>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [October 11, 2024, 10:05am UTC](https://devforum.zoom.us/t/suspended-state-detection/118988 "2024-10-11T10:05:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![H-Takesue](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h-takesue/32/60015_2.png) [@H-Takesue](https://devforum.zoom.us/u/H-Takesue)\
**Post date:** [October 11, 2024, 10:05am UTC](https://devforum.zoom.us/t/suspended-state-detection/118988/1 "2024-10-11T10:05:31Z")

</div>

Video SDK Web and Version  
Zoom Web Video SDK 1.12.5  
Google Chrome

Hello.

I am currently using the Video SDK in a web browser.

The desktop application version of the zoom client behaves in a way that ends the call and disconnects from the session when the PC or Mac is closed.

Is it possible to achieve this behavior with the web version of the zoom client?

Currently, the connection-change state becomes the connect state after about 2000ms.

Also, if the computer goes to sleep for a certain period of time, the camera will fail to start up.

Is there any processing that needs to be done?

---

<div class="post-metadata">

**Author:** ![Fario\_Consulting](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@Fario\_Consulting](https://devforum.zoom.us/u/Fario_Consulting)\
**Post date:** [October 12, 2024, 2:44pm UTC](https://devforum.zoom.us/t/suspended-state-detection/118988/2 "2024-10-12T14:44:50Z")

</div>

Hi Hiroaki,  
You should listen for the ‘unload’ and ‘beforeUnload’ events on your webpage (to understand when a tab is closed).  
By doing so, you could call the ZoomMtg.endMeeting() function at the appropiate time and end the meeting.

---

<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:** [November 12, 2024, 12:44am UTC](https://devforum.zoom.us/t/suspended-state-detection/118988/3 "2024-11-12T00:44:54Z")

</div>

Closed on November 12, 2024, 12:44am UTC

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