Thank you for reaching out to the Zoom Developer Forum. First, I’ll note that the onUserLeave event will only fire for users that are still in the meeting. It doesn’t fire for the user that is leaving, prior to them leaving.
Further, the host will not receive the OnMeetingStatus event when the meeting ends as the page redirects before the event is fired. Only participants will receive that event with a status of 3 when the meeting ends.
If that doesn’t help, are you able to provide a code snippet that shows how and where you’re calling the inMeetingServiceListener? If you haven’t already, you can use our Sample Web App as a reference.
I don’t quite get the onUserLeave event will only fire for users that are still in the meeting, but when will it be fired? because the name suggest onUserLeave… so it should be fired when the user is not in the meeting anymore right?. If I got it wrong, what is the purpose of this event?
I’m trying to close the window when the user ends the meeting (the redirection is no good for us). Doesn’t matter if the user is a participant or the host, if the user leaves the meeting (pressing the leave button) our requirement is to close the window.
Happy to help clarify—to that end, the onUserLeave event will fire as expected for users that are not the host (regular participants) as when the host ends the meeting, the page redirects before it has a chance to fire for the host.
The same is true when it comes to onMeetingStatus . For participants of the meeting, you’ll see this event fire. However, the host won’t see this event fire before the page redirects at the end of the meeting.
You can use these methods to detect when a user leaves it just may not work for the host. When it comes to the host, you may want to look into the meeting.started or meeting.participant_joined webhooks.
I’ve been testing the onUserLeave for the users that are not the host. Can you confirm that the onUserLeave it only fires for other participants that remains on the meeting, and the user that leaves just only redirects to the leave url and does not fire an event.
What I really want to know is if there is any event that is trigger after the user leaves the meeting. What I seen so far is that using my logs is that the events are only fired while you are on the call, after you leave you can only expect the redirect url.