This project is an Android application that integrates Zoom Meeting SDK, providing users with the ability to Start a Meeting or Join a Meeting directly from the app. The implementation of Zoom SDK covers both authentication methods and meeting operations.
- Start Meeting: Authenticate using JWT and OAuth to start a Zoom meeting.
- Join Meeting: Quickly join a Zoom meeting by entering the meeting ID and password without requiring any additional authentication.
To get started, clone the repository and follow the setup instructions provided below.
To start a meeting using the Zoom SDK, the following steps are involved:
- Login to Zoom Marketplace.
- Click on Build App under the "Develop" button (top-right corner).
- Select General App from the available options and fill in the required credentials.
- You'll obtain
client_id
andclient_secret
, which are required for authentication. - Define the following scopes:
user:read:user
user:read:token
user:read:zak
zoomapp:inmeeting
- You'll obtain
- After the console setup, generate a JWT token using the
client_id
andclient_secret
. - You can use the library dependency https://github.com/auth0/java-jwt to do this.
- Request the authorization code by making a GET request to the following URL:
https://zoom.us/oauth/authorize?response_type=code&client_id=${CLIENT_ID}&redirect_uri=$redirectUri
- After allowing the application to access Zoom, use the authorization code to obtain an access token:
curl -X POST https://zoom.us/oauth/token \ -H "Authorization: Basic $(echo -n 'YOUR_CLIENT_ID:YOUR_CLIENT_SECRET' | base64)" \ -d "grant_type=authorization_code" \ -d "code=YOUR_AUTHORIZATION_CODE" \ -d "redirect_uri=YOUR_REDIRECT_URI"
- Expected response:
{ "access_token": "ACCESS_TOKEN", "token_type": "bearer", "expires_in": 3600, "refresh_token": "REFRESH_TOKEN", "scope": "user:read" }
- Use the access token to obtain a ZAK token for starting a meeting:
curl -X GET "https://api.zoom.us/v2/users/me/token?type=zak" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
- Expected response (success):
{ "token": "ZAK_TOKEN" }
- With the ZAK token, you can now start the meeting using the Zoom SDK.
To join a meeting, simply enter the Meeting ID and Password and click the Join button. No authentication is required for this process.
- To download the Zoom Meeting SDK, you need to create an app in Zoom Marketplace as a "General App".
- Navigate to Build App > Features > Embed > Meeting SDK > Android.
- Download the latest version of the project and extract the
mobilertc
module. Import the module into your Android project, and you're good to go!
- Java JWT (Auth0) for generating JWT tokens.
- Zoom Meeting SDK for Android (requires creating an app on Zoom Marketplace).
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or issues, please feel free to open an issue or reach out via GitHub.
Happy Coding!