Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb

cursosdesarrolloweb/zoom.client.js Secret

Last active Jul 18, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.