-
-
Save cursosdesarrolloweb/2c94e84c36b702d8dad7eed896836e13 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
import Vue from 'vue' | |
import { ZoomMtg } from "@zoomus/websdk"; | |
ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.9/lib', '/av'); | |
console.log("checkSystemRequirements"); | |
console.log(JSON.stringify(ZoomMtg.checkSystemRequirements())); | |
ZoomMtg.preLoadWasm(); | |
ZoomMtg.prepareJssdk(); | |
const API_KEY = 'YOUR_JWT_API_KEY'; | |
const API_SECRET = 'YOUR_JWT_API_SECRET'; | |
const lang = 'es-ES'; | |
const MeetingCfg = (meetingId, nickname, email, password, role) => ({ | |
apiKey: API_KEY, | |
apiSecret: API_SECRET, | |
meetingNumber: meetingId, // meetingID | |
userEmail: email, | |
userName: nickname, | |
passWord: password, | |
leaveUrl: "/meetings", // when meeting is closed | |
role: parseInt(role), // 0 (participant) 1 (host) | |
lang // language | |
}) | |
Vue.prototype.$ZoomMtg = ZoomMtg | |
Vue.prototype.$MeetingCfg = MeetingCfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment