Hello,
i am connect with zoom api from browser, during meeting my client enters different data through our product, due to meeting end page refreshed and entered data during call is loss, meeting end can be called manually or internet disconnectivity. i don’t want to refresh the page on meeting end.
leaveUrl is required field to JoinMeeting API call. Now when the meeting ends the client is redirected to that URL. Is there any way to prevent the redirect at the end of the meeting. We use Zoom’s Web API to show small video screen of the meeting host. When the meeting ends we want to user to continue to interact with the page without reloading it.
Unfortunately at this time the leaveUrl is required. I suggest passing in a state query param for the leaveUrl so you can implement logic to show the content you want for the respective user after the redirect.
I’ve tried using the above solution but it doesn’t work for me. I disabled the leave button as suggested and used the leaveMeeting function like this:
ZoomMtg.leaveMeeting({});
But after about 8 seconds when it finishes leaving the meeting it still redirects to the leaveUrl. According to the leaveMeeting function documentation you can pass the params object (empty in my case). Is there a param that I can set to prevent the use of the leaveUrl? As it is, the user can click off to a different page, and then randomly gets redirected to the leaveUrl.
I saw there is a Fully Customizable SDK option available now. Is that essentially the same thing as the Web SDK, which customizations? If so, could we potentially customize it to disable the leaveUrl?
The Fully Customizable SDK gives you access to the raw audio and video feeds so you can build your frontend from scratch. You can read more about the differences here:
Or you could try setting the leaveUrl to something like window.location.href + '#0' (whateverurl.com/your-page#0), which won’t actually navigate to a new page. If implemented as intended.
It will link to an element on the page with id 0 and just scroll to it, or nothing happens if it doesn’t exist. Should work fine.