-
-
Save cursosdesarrolloweb/30a3d56c103238bf38d62ca976ee4468 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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