If the user clicks the Ok button, it gets redirected to te leaveURL page, but the user really didn’t want to leave, because the meeting has not started yet.
Is there a possibility to catch the Ok button click event in that particular popup?
Is there a possibility to somehow tell the user that the meeting has not yet started but it’s up and scheduled?
Thank you for reaching out to the Zoom Developer Forum. Good questions!
We don’t have a method to catch events from that button right now. You can test writing custom JS to override the events on that element but that would be outside the scope of what we can support here and may cause other issues in the Web SDK.
Yes, that’s definitely possible and I think that would be the best method to avoid sending the user to the leaveUrl before the meeting starts. In order to accomplish this, you can call the Get a Meeting API and use the status property from what is returned.
If the status is started, it’s safe to allow the user to join the meeting. If the status is waiting you can display your own information to the user.
I hope that helps! Let me know if you have any questions.
I’m glad to hear that resolved your issue! Thank you for posting what workd for you. Please don’t hesitate to reach out if you encounter any further issues or questions.