# Close Meeting if Host Close Browser Directly

**URL:** <https://devforum.zoom.us/t/close-meeting-if-host-close-browser-directly/35068>\
**Category:** Web\
**Created:** [November 4, 2020, 7:45am UTC](https://devforum.zoom.us/t/close-meeting-if-host-close-browser-directly/35068 "2020-11-04T07:45:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madhan](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Madhan](https://devforum.zoom.us/u/Madhan)\
**Post date:** [November 4, 2020, 7:45am UTC](https://devforum.zoom.us/t/close-meeting-if-host-close-browser-directly/35068/1 "2020-11-04T07:45:27Z")

</div>

**Description**  
In our scenario if client directly close browser without choose end meeting. We are not getting any Webhook for end meeting

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Go to ‘Open Zoom from your Website’
2. Click on 'Close Browser or Tab ’
3. Need to find meeting to free that user

---

<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 6, 2020, 6:06pm UTC](https://devforum.zoom.us/t/close-meeting-if-host-close-browser-directly/35068/2 "2020-11-06T18:06:21Z")

</div>

Hey @Madhan,

This is the expected flow. If the host closes the browser or gets disconnected, another user will become the meeting host and the meeting will continue.

When the host rejoins the meeting, they will become the co-host.

You can read more about this functionality here:

> [@Cannot rejoin as host after leaving meeting](https://devforum.zoom.us/t/cannot-rejoin-as-host-after-leaving-meeting/28431):
>
> Description I want to join as host after I have exited meeting by closing the tab or reloading in websdk integration. Join with host access Error The full error message or issue you are running into. Which version? 1.8.0 To Reproduce(If applicable) Steps to reproduce the behavior: Join a meeting as host Allow some attendees to join Leave meeting. Create a new meeting signature role as “1”/host and use that to join the meeting that i left I join as a participant and someone has to transf…

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Madhan](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Madhan](https://devforum.zoom.us/u/Madhan)\
**Post date:** [November 9, 2020, 10:46am UTC](https://devforum.zoom.us/t/close-meeting-if-host-close-browser-directly/35068/3 "2020-11-09T10:46:50Z")

</div>

Thanks tommy,

My Case little different No participants in the call(on End), When Host Close Browser means Livestream not getting **End**. That particular **Meeting ID** not getting _ **Webhook Response** _. We need find those **Meeting ID** , and want to end Manually using API call. Its not possible to do every time, until manual work we cannot start use those user is free or not.  
And In this case no one want to rejoin as Host.

Please consider this as a serious issue, We had to brought more user to overcome. but That not possible to inverse that much amount for unused Users

---

<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 10, 2020, 7:14pm UTC](https://devforum.zoom.us/t/close-meeting-if-host-close-browser-directly/35068/4 "2020-11-10T19:14:11Z")

</div>

Hey @Madhan,

A possible work around for you is to use the [Participant Left Webhook](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/participant-left), check to see if the user who left or closes the browser (disconnected) is the meeting host, and if so, call the [End Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingstatus). That is a completely programmatic solution. 🙂

Thanks,  
Tommy

---

<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:** [December 11, 2020, 5:14am UTC](https://devforum.zoom.us/t/close-meeting-if-host-close-browser-directly/35068/5 "2020-12-11T05:14:21Z")

</div>

Closed on December 11, 2020, 5:14am UTC

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