Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created July 18, 2020 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/30a3d56c103238bf38d62ca976ee4468 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/30a3d56c103238bf38d62ca976ee4468 to your computer and use it in GitHub Desktop.
<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
Copy link

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