Join meeting error after host ends the session

Description

When the host ends the meeting (client.leave(true)), and the guest attempts to join the room simultaneously, calling client.join(meetingId, token, userName, passcode) from ZoomSDK returns an error: Error: {“type”: “JOIN_MEETING_FAILED”, “reason”: “meeting ended”, “errorCode”: 4004}.

if guest init too long after host ended the meeting. When call client.join(meetingId, token, userName, passcode) will create new meeting session instead.

I want to know exactly when each scenario occurs. Example:

  • < 500ms after the host ends the Zoom meeting**: Calling client.join(meetingId, token, userName, passcode) will throw error 4004.
  • After 500ms: Calling client.join(meetingId, token, userName, passcode) will succeed and start a new meeting session.?

Thank you very much for your help!

Which Web Video SDK version?
1.12.10

Device (please complete the following information):

  • Device: MacMini
  • OS: 15.1
  • Browser: Chrome
  • Browser Version : 131.0.6778.109

Hey @lmtruong1512

Thanks for your feedback.

There is indeed a scenario where the meeting is ended, which is unrelated to the client.init method but rather to the client.join method. However, I can’t give you a specific time threshold. The issue usually occurs during the process of a user joining a session when the host ends the session.

The process of joining a session involves two steps:

  1. Retrieve the session ID using the topic: If there is an in-progress session under the same topic, the existing session is returned; otherwise, a new session is created.
  2. Connect to the media server using the session ID.

This creates some edge cases. If step 1 is completed but step 2 has not yet finished connecting to the media server, and the host ends the session during this time, it results in a JOIN_MEETING_FAILED error.

Thanks
Vic

1 Like

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