Can not use function endMeeting/leaveMeeting

Hi everyone,

  • i want to end the meeting when the user closes the tab. I found 2 endMeeting/leaveMeeting functions but I can’t access them. Can you help me with this problem?
    I have tried writing those two functions separately or in zmClient.join but still no success.
    zmClient.join({
    sdkKey: sdkKey,
    signature: signature,
    meetingNumber: meetingNumber,
    userName: userName,
    password: password,
    userEmail: ‘email’,
    success (res) {
    console.log(“join meeting success”);
    console.log(“get attendeelist”);
    ZoomMtg.getAttendeeslist({});
    ZoomMtg.getCurrentUser({
    success: function (res) {
    console.log(“success getCurrentUser”, res.result.currentUser);
    },
    });
    },
    error: function (res) {
    console.log(res);
    },
    })

zmClient.endMeeting({})

Best regards,
John

Hi @tuanthinhit ,

To leave the meeting, you will call the method like this.
Let me know if it helps

ZoomMtg.leaveMeeting({
  confirm: false
});

Dear @chunsiong.zoom

Thank you so much, it’s working now.

  • But I have a problem. That’s when I exited the room and then re-entered, I couldn’t get back in again. I got this error: Cannot assign to read only property ‘meetingInfo’ of object ‘#’
  • Do you have any solution for this problem? As it happens in the init function when I want to customize some information about the zoom.
    Thank you in advance.

Best regards.

could you share how you might be customizing the information and how you are calling init?

Dear @chunsiong.zoom

  • I using this code to init. But when i out room and join room again. Then meetingInfo, toolbar and video will show error read only.
  • Please have a look at this problem for me. I am stuck here.
  • Thank you in advance.
    Best regards,
    John

seems like the accepted strings might be enum, could you change ‘topic22’ to ‘topic’?

Dear @chunsiong.zoom

  • same issue, sir
  • The problem here seems to be that when exiting the room and running the init function again, it wants to override something in the “customize” properties like meetingInfo, toolbar…


@tuanthinhit ,

Everytime you click on join, does it try to re-run init?
Init should only be called once. Subsequent joins should not call init.

Hi @chunsiong.zoom

  • But how can I re-initialize the zoom and still keep the value I initially initialized including the size…?
    Thank you.

Hi @thinh.pv ,

I understand. If that is the case, after you leave the 1st meeting could you do the following?

Hi @chunsiong.zoom

  • I checked and same problem.
  • Can you please try and send me your code sample?
  • I may have misplaced it so it may not run correct.

Best regards

@chunsiong.zoom

  • I need to enable SharedBufferArray to enable some functionality like:
  • Gallery View on Desktop Chrome, Edge, and Firefox.
  • Virtual Background on Chrome and Edge.
  • Sending 720p video on Chrome.

Reference link: https://marketplace.zoom.us/docs/sdk/overview/websdk-gallery-view/
=> To enable SharedBufferArray, i need to set: Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener-Policy: same-origin
=> Therefore, currently being blocked from loading scripts when not from the same origin. So some functions like chat from third party can not working.

  • Can you help me this issue?

Best regards,
John

Hi John,

Have you there either 3 of these methods?

Implementing Cross-Origin Isolation
Implementing Credentialless Headers
Implementing Chrome Origin Trials

They are found here https://marketplace.zoom.us/docs/sdk/overview/websdk-gallery-view/#implementing-cross-origin-isolation

@chunsiong.zoom

  • Seem it’s not working well because it’s still block third party script.

Best regards,
John

@tuanthinhit

do you have a screenshot of the console log?

Hi @chunsiong.zoom

I have enabled Groupd HD but my web still just show 360p video. Can you help me?
Do I need to setup the stream function? And if so, where do you need it? Because when I debug, the stream is not defined.
Link: https://marketplace.zoom.us/docs/sdk/overview/720p/?fbclid=IwAR084kJgKuKxn7aGd_IKZ8Q3d-ROE6BZz2kcPHwF6-1vnbMgQcv2oAslPbQ
Thank you in advance.

Best regards.

@tuanthinhit ,

the page which you are looking at addresses 2 different products
Video SDK
Meeting SDK ← do take a look at this section
I’m adding the link here to make is easier to access

Another thing you want to enable, would be shared array buffer on your browser

Hi @chunsiong.zoom

  • Yep. I have enabled SharedArrayBuffer and enabled Group HD but it still not showing 720p video.

Best regards,
John

are you able to share a screenshot?

Hi @chunsiong.zoom

  • As you can see. I have config as document but my video can not up to 720p.