cancel
Showing results for 
Search instead for 
Did you mean: 

Import { ZoomMtg } from ‘@zoomus/websdk’; causing React app to crash

shubhp10482
Newcomer
Newcomer

I am integrating zoomus/websdk client view in my react-application. The moment I import ZoomMtg my app got crashed. I am not getting any clue why is it happening. On the other hand when I am importing component view, everything is working fine. 
Zoom Meeting SDK: 2.9.5

React version: 16.13.1

 

My code:

// importing in my component

import {ZoomMtg} from '@zoomus/websdk';
ZoomMtg.setZoomJSLib('https://source.zoom.us/2.9.5/lib', '/av');
ZoomMtg.preLoadWasm();
ZoomMtg.prepareWebSDK();
ZoomMtg.i18n.load('en-US');
ZoomMtg.i18n.reload('en-US');
 
// On clicking on my application button when I want user to join meeting
ZoomMtg.init({
leaveUrl: leaveUrl,
success: (success) => {
console.log(success)

ZoomMtg.join({
signature: <signature>,
meetingNumber: <meetingNumber>,
userName: <userName>,
sdkKey: <sdkKey>,
zak: <zak>,
passWord: <passWord>,
success: (success) => {
console.log(success)
},
error: (error) => {
console.log(error)
}
})

},
error: (error) => {
console.log(error)
}
})

 

0 REPLIES 0