# No UI updates when meeting ended by host leads to errors

**URL:** <https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927>\
**Category:** Web\
**Created:** [September 16, 2019, 6:40pm UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927 "2019-09-16T18:40:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![edward](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/edward/32/1829_2.png) [@edward](https://devforum.zoom.us/u/edward)\
**Post date:** [September 16, 2019, 6:40pm UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927/1 "2019-09-16T18:40:26Z")

</div>

**Description/Error**  
If the zoom meeting host selects “End Meeting for All” option, the zoom web sdk client will show a modal “The meeting has been ended” “This meeting has been ended by host” with the option “ok” (see screens below). Pressing “ok” will close this modal but have no other affect on the client UI (video will be frozen).

Interacting with the client in this state will throw various errors. The UI should reset to its initial state (black screen without any other elements). Alternatively, if we could pass a callback on meeting leave this could be handled.

**Which Endpoint/s or Web JS SDK?**  
Web sdk version 1.5.1

**How To Reproduce (If applicable)**  
Start a meeting using a native zoom app.  
Join meeting with web sdk client.  
End meeting for all with host client.  
Web sdk client enters error state.

**Screenshots (If applicable)**  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/bb11979168763ffceb5d021daf1267b892cd3bff.png)

One example: pressing ‘Leave Meeting’ after the host ended meeting for all:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/5076cf458a3b778275dd36cc1c95119056ea8d07.png)

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [September 16, 2019, 10:09pm UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927/2 "2019-09-16T22:09:34Z")

</div>

Hi @edward,

Is the host ending the meeting outside of the Web SDK correct? Do you have the leaveUrl set within the Zoomtg.init function?

Thanks

---

<div class="post-metadata">

**Author:** ![edward](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/edward/32/1829_2.png) [@edward](https://devforum.zoom.us/u/edward)\
**Post date:** [September 16, 2019, 10:56pm UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927/3 "2019-09-16T22:56:39Z")

</div>

@michael_p.zoom

> Is the host ending the meeting outside of the Web SDK correct?

Yes.

> Do you have the leaveUrl set within the Zoomtg.init function?

Yes. We don’t want to redirect the user after the meeting but this is marked as a required parameter so it is set as the current location to mimic a noop.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [September 17, 2019, 6:53pm UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927/4 "2019-09-17T18:53:52Z")

</div>

Hi Edward,

Right now, the leaveurl is designed to go to another link outside of the WebSDK, primarily since the WebSDK is only used for that specific meeting instance and nothing else.  
Any reason why you would want the to be navigated back to the WebSDK page?

Thanks

---

<div class="post-metadata">

**Author:** ![edward](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/edward/32/1829_2.png) [@edward](https://devforum.zoom.us/u/edward)\
**Post date:** [September 17, 2019, 10:13pm UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927/5 "2019-09-17T22:13:45Z")

</div>

The reason is because we are building a dynamic single page application where the zoom client is one of many components in view. Unlike Zoom, the end of a video conference does not signify the end of a flow, so it wouldn’t be appropriate to send the user to some other landing page.

If we could have some event listener for when a user has left a meeting (either by their own action or by that of the host), we can handle this elegantly.

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [September 17, 2019, 11:04pm UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927/6 "2019-09-17T23:04:28Z")

</div>

Hi @edward - as you may have read, we’re actively working on the experience of the Web SDK, and really appreciate your activity here as we improve both the module importing and usage in SPAs. Please keep posting as you run into any problems, and let us know where we might be able to improve.

Our Web SDK is meant to be used in conjunction with our APIs and Webhooks - thus, one suggestion may be to use Webhooks like our [Participant Left](https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/participant-left) event. I’d suggest matching the uuid of the meeting and participant id and then handling in the app. Until greater functionality (like an event listener) is added, this may be your (our) best bet.

---

<div class="post-metadata">

**Author:** ![edward](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/edward/32/1829_2.png) [@edward](https://devforum.zoom.us/u/edward)\
**Post date:** [September 18, 2019, 1:33am UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927/7 "2019-09-18T01:33:07Z")

</div>

Thanks for following up! I can see how using the Web SDK + API + webhooks can make for a powerful combo.

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [September 18, 2019, 3:24pm UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927/8 "2019-09-18T15:24:41Z")

</div>

Of course @edward, let us know if you run into any problems or if we can help in anyway.

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:42pm UTC](https://devforum.zoom.us/t/no-ui-updates-when-meeting-ended-by-host-leads-to-errors/5927/9 "2020-08-21T18:42:27Z")

</div>

Closed on August 21, 2020, 6:42pm UTC


