I have installed the SDK (from module) and can get the integration as far as joining a meeting but it then sticks at ‘Joining a Meeting’ and I get no console errors.
I’m using 1.9.6 loaded via NPM - it looks as though .join isn’t firing as I don’t get a response from my success callback - does anyone know what may be causing this?
I’ve popped my component code below and a sample signature for reference if anyine can give some guidance on what might be the issue?
<template>
<div>
<div id="zmmtg-root"></div>
<v-btn @click="getSignature">Launch Zoom</v-btn>
</div>
</template>
<script>
import ZoomServices from "@/Services/ZoomServices";
export default {
mounted() {
this.zoomInit();
},
data() {
return {
apiKey: "***removed***",
leaveUrl: "http://localhost:3000",
meetingNumber: "***removed***",
passWord: "",
role: 0,
userEmail: "***removed***",
userName: "Dan",
};
},
methods: {
zoomInit() {
this.$zoom.preLoadWasm();
this.$zoom.prepareWebSDK();
//loads language files, also passes any error messages to the ui
// this.$zoom.i18n.load("en-US");
// this.$zoom.i18n.reload("en-US");
// this.$zoom.inMeetingServiceListener("onUserJoin", (data) => {
// console.log("inMeetingServiceListener onUserJoin", data);
// });
},
getSignature() {
const meeting = {
meetingNumber: this.meetingNumber,
role: this.role,
};
ZoomServices.getSignature(meeting)
.then((res) => {
console.log(res.data.signature);
this.startMeeting(res.data.signature);
})
.catch((error) => {
console.log(error);
});
},
startMeeting(signature) {
const self = this;
self.$zoom.init({
leaveUrl: this.leaveUrl,
isSupportAV: true,
debug: true,
success: () => {
self.$zoom.join({
apiKey: self.apiKey,
signature: signature,
meetingNumber: self.meetingNumber,
userName: self.userName,
leaveUrl: self.leaveUrl,
passWord: self.passWord,
success: (success) => {
console.log(success);
},
error: (error) => {
console.log(error);
},
});
//console.log('joinConfig', joinConfig);
},
error: function (res) {
console.log(res);
},
});
},
},
};
</script>
Signature = [REDACTED]