Meeting.ended but host did not end

I’m experience something that could be an edge case or possibly something which I’m missing in the docs:

https://marketplace.zoom.us/docs/api-reference/webhook-reference/meeting-events/meeting-ending

The docs explain that meeting.ended should be fired only when the host has clicked End meeting. However it seems like this is also triggered in edge cases, for example, the host had a sudden computer restart causing him to leave the meeting. The attendee than also leaves the meeting, which seems to trigger an inadvertent meeting.ended which should have resumed after ~5mins.

Is that possible? Does that actually happen?

Thanks!

Hey @alon,

Yes this is the intended functionality. If the hosts computer crashes, then the host “Leaves the meeting” without ending it. Then the attendee becomes the host, and if the attendee leaves, then the meeting.ended event will trigger.

Thanks,
Tommy

is there a way to avoid this behavior with some flag or some API call?

is there a way of avoiding the attendee becoming the host? this doesn’t make sense for the attendee to get control of the meeting…

Hey @alon,

The attendee does not get control of the meeting or your account. They just become the host since they are the only ones in the meeting. You could try turning off the join before host setting.

Thanks,
Tommy