import { ZoomMtg } from '@zoomus/websdk';
ZoomMtg.setZoomJSLib('https://source.zoom.us/2.1.1/lib', '/av');
ZoomMtg.preLoadWasm();
ZoomMtg.prepareWebSDK();
ZoomMtg.i18n.load('ko-KO');
ZoomMtg.i18n.reload('ko-KO');
const zoomMeetingSDK = document.getElementById("zmmtg-root")
// To hide
zoomMeetingSDK.style.display = 'none';
// To show
zoomMeetingSDK.style.display = 'block';
/* To hide */
#zmmtg-root {
display: none;
}
/* To show */
#zmmtg-root {
display: block;
}
Meeting : https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view/meetings
Webinar : https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view/webinars
const signature = ZoomMtg.generateSignature({ apiKey, apiSecret, meetingNumber, role });
Reference : https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view/reference
ZoomMtg.init({
leaveUrl: leaveUrl,
success: (success) => {
console.log(success)
ZoomMtg.join({
...
})
},
error: (error) => {
console.log(error)
}
})
ZoomMtg.join({
signature: signature, // required
apiKey: apiKey, // required
meetingNumber: meetingNumber, // required
userName: userName, // required
userEmail: userEmail, // required
passWord: passWord, // optional
success: (success) => {
console.log(success)
},
error: (error) => {
console.log(error)
}
})