Description
I’m trying to implement the web sdk inside my rails application. I’m generating the signature in my controller and then, inside my javascript file I’m running this:
import { Controller } from "stimulus"
import { ZoomMtg } from '@zoomus/websdk'
export default class extends Controller {
static targets = ['container']
connect() {
this.initZoom()
}
initZoom() {
ZoomMtg.setZoomJSLib('https://source.zoom.us/1.8.3/lib', '/av')
ZoomMtg.preLoadWasm()
ZoomMtg.prepareJssdk()
const {signature, apiKey} = this.containerTarget.dataset
ZoomMtg.init({
leaveUrl: 'https://google.com',
isSupportAV: true,
success: function() {
ZoomMtg.join({
signature,
meetingNumber: 'xxxxxxxxx',
password: 'xxxxx',
userName: 'ilrock',
apiKey,
role: 1,
success: (success) => {
console.log(success)
},
error: (error) => {
console.log(error)
}
})
}
})
}
}
When the page loads, it gets stuck on “Joining Meeting”. No log messages or errors are shown.
Error
No error messages are shown
Which version?
1.8.3
Screenshots
Tried to upload a screenshot and it gives me an error. Just wanted to show you the page stuck on “Joining Meeting” and the console showing the following:
pre load wasm success: https://source.zoom.us/1.8.3/lib/av/5793_audio.encode.wasm
zoomus-websdk.umd.min.js:122860 pre load wasm success: https://source.zoom.us/1.8.3/lib/av/5793_video.decode.wasm
Device (please complete the following information):
- Device: Razer Blade stealth
- OS: Windows 10
- Browser: Chrome