To run the sample application locally, clone the repository, install dependencies, and configure your meeting credentials in src/App.tsx.
Installation
$ git clone https://github.com/zoom/meetingsdk-react-sample.git
$ cd meetingsdk-react-sample
$ npm install
Configuration
Open src/App.tsx and update the following variables with your Zoom credentials.
Note: If you want to use the Component View instead of the Client View, replace App.tsx with App-New.tsx (the leaveUrl variable is not required for Component View).
| Variable | Description |
|---|
authEndpoint | Required. Your Meeting SDK auth endpoint that securely generates a Meeting SDK JWT. |
meetingNumber | Required. The Zoom Meeting or webinar number. |
passWord | Optional. Meeting password. Use an empty string if not required. |
role | Required. 0 for participant, 1 for host. |
userName | Required. Name of the user joining/starting the meeting. |
userEmail | Required for Webinar; optional for Meeting (unless registration is required). |
registrantToken | Required if the meeting/webinar requires registration. |
zakToken | Required to start meetings/webinars on behalf of an external Zoom user or to join as an authenticated participant. |
leaveUrl | Required for Client View. The URL the user is redirected to after the meeting ends. |
Running the App
After saving your changes to App.tsx, start the development server:
$ npm run dev
Navigate to http://localhost:5173 in your browser and click "Join Meeting".
var authEndpoint = 'http://localhost:4000'
var meetingNumber = '123456789'
var passWord = ''
var role = 0
var userName = 'React'
var userEmail = ''
var registrantToken = ''
var zakToken = ''
var leaveUrl = 'http://localhost:5173'