Meeting ended webhook slow(2 minutes)

I’ve setup webhooks on meeting start and meeting end.

Meeting start is received exactly when I enter the created meeting as a host.
Meeting end is received after 2-3 minutes.

I’m mentioning that the webhook is used with the web SDK.

I’m ending a meeting by simply joining first(so it starts) and then I refresh the page/close tab → meeting ends.

Here are some logs:
Meeting start (instant)
image

    stdClass Object
(
    [event] => meeting.started
    [payload] => stdClass Object
        (
            [account_id] => xxx
            [object] => stdClass Object
                (
                    [duration] => 60
                    [start_time] => 2021-02-01T17:40:40Z
                    [timezone] => Europe/London
                    [topic] => Meeting #1
                    [id] => xxxx
                    [type] => 1
                    [uuid] => xxx
                    [host_id] => xxx
                )

        )

    [event_ts] => 1612201240869
)

While meeting end:
image

    stdClass Object
(
    [event] => meeting.ended
    [payload] => stdClass Object
        (
            [account_id] => xxx
            [object] => stdClass Object
                (
                    [duration] => 60
                    [start_time] => 2021-02-01T17:40:40Z
                    [timezone] => Europe/London
                    [end_time] => 2021-02-01T17:40:47Z
                    [topic] => Meeting #1
                    [id] => xxx
                    [type] => 1
                    [uuid] => xxx
                    [host_id] => xxx
                )

        )

    [event_ts] => 1612201247628
)

You can clearly see in the second webhook request that the meeting had ended at (2021-02-01T17:40:47Z) but the request itself had been sent and received at 17:42:38 (2 mins and 30 seconds later)

Hey @an4rei,

Thank you for reaching out to the Zoom Developer Forum. It seems that you’re hitting an internal session timeout for the host and the back-end server is then considering the meeting to have ended when that timeout completes without communicating to the Web SDK.

This is the expected behavior if close a browser tab from what I understand. Instead, you’ll want to end the meeting through the Web SDK UI before closing the tab.

This is also true if a user leaves a meeting without using the UI. You’ll see that Zoom leaves them in the meeting for a short period of time before considering them to have left the meeting.

If you want to end the meeting when the tab is closed, you can listen for the unload and beforeUnload events and call the ZoomMtg.endMeeting() function.

I hope that helps!

Thanks,
Max

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