Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Last active July 18, 2020 05:31
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/2c94e84c36b702d8dad7eed896836e13 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/2c94e84c36b702d8dad7eed896836e13 to your computer and use it in GitHub Desktop.
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