Zoom MeetingSDK-Web Client
npm install @zoom/meetingsdkUse of this SDK is subject to our Terms of Use
The Zoom Meeting SDK embeds the Zoom Meeting and Webinar experience in a website through a highly optimized WebAssembly module.
The Meeting SDK is reserved for human use cases and does not support bots or AI notetakers. To build an AI notetaker application or access realtime media, use Zoom RTMS (Real-time media streams $npm install @zoom/rtms).
In your frontend project, install the Meeting SDK:
``bash`
npm install @zoom/meetingsdk --save
There are two views to choose from, Client View and Component View.
- Client View: Full-page meeting experience identical to Zoom Web Client
- Component View: Flexible, embeddable meeting components for custom UI/UX
> What is Client View?
> The Client View provides a full-page meeting experience identical to the Zoom Web Client, seamlessly integrated into your web page.
Import ZoomMtg and prepare the SDK:
`js
import { ZoomMtg } from '@zoom/meetingsdk'
ZoomMtg.preLoadWasm()
ZoomMtg.prepareWebSDK()
`
> Note: The Meeting SDK adds DOM elements for overlays and accessibility. Learn more about managing these elements.
#### ZoomMtg.init() Parameters
| Parameter | Description |
|-----------|-------------|
| leaveUrl | Required - URL where participants are redirected when leaving the meeting |
#### ZoomMtg.join() Parameters
Get meeting details from the Zoom APIs.
| Parameter | Description |
|-----------|-------------|
| signature | Required - Your SDK JWT |meetingNumber
| | Required - The Zoom Meeting or Webinar Number |userName
| | Required - Name of the user joining the meeting |passWord
| | Required - Meeting password (empty string if only waiting room required) |userEmail
| | Required for Webinars - User email (also required for registration) |tk
| | Required for Registration - Registrant's token |zak
| | Required for Starting - Host's Zoom Access Key (ZAK) |
`js`
ZoomMtg.init({
leaveUrl: 'https://yourapp.com/meeting-ended',
patchJsMedia: true,
success: (success) => {
console.log('SDK initialized successfully')
ZoomMtg.join({
signature: signature,
meetingNumber: meetingNumber,
userName: userName,
userEmail: userEmail,
passWord: passWord,
success: (success) => {
console.log('Joined meeting successfully')
},
error: (error) => {
console.error('Failed to join meeting:', error)
}
})
},
error: (error) => {
console.error('Failed to initialize SDK:', error)
}
})
For the full list of features and event listeners, as well as additional guides, see our Meeting SDK docs.
!Zoom Meeting SDK Component View
> What is Component View?
> The Component View provides flexible, embeddable meeting components that can be styled and positioned within your existing UI design.
Import ZoomMtgEmbedded and create the client:
`js
import ZoomMtgEmbedded from "@zoom/meetingsdk/embedded"
const client = ZoomMtgEmbedded.createClient()
`
Create a container element where the Meeting SDK will render:
`html`
> Note: The container remains hidden until you join a meeting or webinar.
Get meeting details from the Zoom APIs.
| Parameter | Description |
|-----------|-------------|
| signature | Required - Your SDK JWT |meetingNumber
| | Required - The Zoom Meeting or Webinar Number |userName
| | Required - Name of the user joining the meeting |password
| | Required - Meeting password (empty string if only waiting room required) |userEmail
| | Required for Webinars - User email (also required for registration) |tk
| | Required for Registration - Registrant's token |zak
| | Required for Starting - Host's Zoom Access Key (ZAK) |
`js
const meetingSDKElement = document.getElementById('meetingSDKElement')
client.init({
zoomAppRoot: meetingSDKElement,
language: 'en-US',
patchJsMedia: true
}).then(() => {
console.log('SDK initialized successfully')
client.join({
signature: signature,
meetingNumber: meetingNumber,
password: password,
userName: userName,
userEmail: userEmail
}).then(() => {
console.log('Joined meeting successfully')
}).catch((error) => {
console.error('Failed to join meeting:', error)
})
}).catch((error) => {
console.error('Failed to initialize SDK:', error)
})
`
For the full list of features and event listeners, as well as additional guides, see our Meeting SDK docs.
To use Zoom for Government, you need to apply for a new SDK key at ZFG Marketplace.
Update your package.json to use the ZFG version:
`json`
{
"dependencies": {
"@zoom/meetingsdk": "4.0.7-zfg"
}
}
#### Client View
`js`
ZoomMtg.setZoomJSLib("https://source.zoomgov.com/{VERSION}/lib", "/av")
ZoomMtg.init({
webEndpoint: "www.zoomgov.com",
// ... other options
})
#### Component View
`js``
const client = ZoomMtgEmbedded.createClient()
client.init({
assetPath: 'https://source.zoomgov.com/{VERSION}/lib/av',
webEndpoint: "www.zoomgov.com",
// ... other options
})
š Documentation: Client View | Component View
---