Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb

cursosdesarrolloweb/Zoom.vue Secret

Created Jul 18, 2020
Embed
What would you like to do?
<template>
<div></div>
</template>
<script>
import "@/zoom/zoom.client";
export default {
name: "Zoom",
props: {
nickname: String,
meetingId: String,
email: String,
password: String,
role: String
}
mounted () {
// Init meetingConfig with event bus
const meetingConfig = this.$MeetingCfg(
this.meetingId, this.nickname, this.email, this.password, this.role
)
const ZoomMtg = this.$ZoomMtg;
// create the signature
const signature = ZoomMtg.generateSignature({
meetingNumber: this.meetingId,
apiKey: meetingConfig.apiKey,
apiSecret: meetingConfig.apiSecret,
role: meetingConfig.role,
success: function (res) {
meetingConfig.signature = res.result;
},
});
// init zoom!
ZoomMtg.init({
leaveUrl: meetingConfig.leaveUrl,
webEndpoint: meetingConfig.webEndpoint,
success: function () {
// join!
ZoomMtg.join({
meetingNumber: meetingConfig.meetingNumber,
userName: meetingConfig.userName,
signature: signature,
apiKey: meetingConfig.apiKey,
userEmail: meetingConfig.userEmail,
passWord: meetingConfig.passWord,
success: function (res) {
ZoomMtg.getAttendeeslist({});
ZoomMtg.getCurrentUser({
success: function (res) {
console.log("success getCurrentUser", res.result.currentUser);
},
});
},
error: function (res) {
console.log(res);
},
});
},
error: function (res) {
console.log(res);
},
});
}
};
</script>
@Marthianfred

This comment has been minimized.

Copy link

@Marthianfred Marthianfred commented Sep 16, 2020

intente replicar tu codigo de ejemplo lastimosamente... me devuelve este error
zoomus-websdk.umd.min.js?478e:2 Uncaught ReferenceError: $ is not defined
at Object.eval (zoomus-websdk.umd.min.js?478e:2)

algo referente a jQuery segun los foros.. pero creeme ya inclui jquery en el codigo sin resultado..
crees posible compartir el folder con el proyecto y ver asi que me falta=????

de antemano gracias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.