- Clone the repo
git clone https://github.com/juniorklawa/zoom_poc_web.git
- Install packages
yarn or npm install
- Enter your configs in
src/config/meetingConfig.js
meetingNumber: "YOUR_MEETING_NUMBER" //fill in if you don't want to fill in by input
password: "YOUR_MEETING_PASSWORD", //fill in if you don't want to fill in by input
role: 0, // 0 for participant 1 to enter as a host 5 to enter in meeting control mode
userEmail: "YOUR_USER_EMAIL", // must be the attendee email address
userName: "YOUR_USER_NAME,
apiKey: "YOUR_API_KEY", // your Zoom api key (JWT)
apiSecret: "YOUR_API_KEY", // You should only put a value here if your signature is being generated on the Frontend (not recommended)
signatureEndPoint: "YOUR_SIGNATURE_ENDPOINT" //,
- Choose how you will generate the signature and enter the meeting in the
src/pages/Zoom/index.js
file
Uncomment this block of code if you are generating your signature in frontend
ZoomMtg.generateSignature({
meetingNumber: meetingNumber,
apiKey: meetConfig.apiKey,
apiSecret: meetConfig.apiSecret,
role: meetConfig.role,
success: function (res) {
setTimeout(() => {
joinMeeting(res.result);
}, 1000);
},
});
Uncomment this block of code if you are generating your signature in your backend (Recommended)
const fetchData = async () => {
try {
const { data } = await axios.post(meetConfig.signatureEndPoint, {
meetingId: meetingNumber,
role: meetConfig.role,
});
joinMeeting(data.signature);
} catch (error) {
console.log(error);
}
};
fetchData();
- Run
yarn start