Bindings for real-time audio, video, and transcript streams from Zoom Meetings
The RTMS SDK works with multiple Zoom products:
- Zoom Meetings - Real-time streams from Zoom Meetings
- Zoom Webinars - Broadcast-quality streams from Zoom Webinars
- Zoom Video SDK - Custom video experiences with RTMS access
- Zoom Contact Center - Real-time streams from Zoom Contact Center voice engagements
See examples/ for complete guides and code samples.
| Language | Status | Supported Platforms |
|---|---|---|
| Node.js | ✅ Supported | darwin-arm64, linux-x64 |
| Python | ✅ Supported | darwin-arm64, linux-x64 |
| Go | 📅 Planned | - |
We are actively working to expand both language and platform support in future releases.
| Platform | Zoom RTMS SDK | Notes |
|---|---|---|
| linux-x64 | linux-1.0.6 (2026-11-05) | All features. Needs glibc 2.34+ and, for Node.js, 22.20.0+ or 24.5.0+ |
| darwin-arm64 | macos-1.0.4 | No SRT, protobuf, meeting chat, or ZCC channelId |
On macOS, setTransportProtocol(SRT) and setMessageFormat(PROTOBUF) throw "... is not supported by the RTMS SDK on this platform (darwin-arm64)". The chat callback never fires, and metadata.channelId is "". Application-layer encryption works on both platforms. Check support at runtime:
if (rtms.SdkFeatures.SRT) client.setTransportProtocol(rtms.TransportProtocol.SRT);if rtms.SDK_FEATURES['SRT']:
client.set_transport_protocol(rtms.TransportProtocol.SRT)SdkFeatures / SDK_FEATURES holds SET_OPTION, SRT, PROTOBUF, CHAT, and CHANNEL_ID as 0/1. rtms.SDK_PLATFORM is "linux-x64" or "darwin-arm64".
The RTMS SDK allows developers to:
- Connect to live Zoom meetings
- Process real-time media streams (audio, video, transcripts)
- Receive events about session and participant updates
- Build applications that interact with Zoom meetings in real-time
- Handle webhook events with built-in signature verification, or with full control over validation and responses
- Receive meeting chat and choose SRT transport or protobuf messages (Linux, RTMS SDK 2026-11), or application-layer encryption (both platforms)
On Linux, the RTMS SDK needs a Node.js that bundles OpenSSL 3.5 or newer, which Node.js 22 provides from 22.20.0 and Node.js 24 from 24.5.0. With an older Node.js, or one linked to an older system OpenSSL, join() throws an error that names the required versions.
# Check your Node.js version
node --version
# Install the package
npm install @zoom/rtmsIf you're using an older version of Node.js:
# Using nvm (recommended)
nvm install 26 # Install Node.js 26 LTS (recommended)
nvm use 26
# Or install Node.js 22 LTS (minimum supported)
nvm install 22
nvm use 22
# Reinstall the package
npm install @zoom/rtmsThe RTMS SDK requires Python 3.11 or higher.
# Check your Python version
python3 --version
# Install from PyPI
pip install rtmsIf you're using an older version of Python:
# Using pyenv (recommended)
pyenv install 3.15
pyenv local 3.15
# Or using your system's package manager
# Ubuntu/Debian: sudo apt install python3.15
# macOS: brew install python@3.15Regardless of the language that you use the RTMS SDK follows the same basic steps:
- Receive the webhook event and verify its signature
- Create an RTMS SDK Client
- Assign data callbacks to that client
- Join the meeting with the event payload
All SDK languages read from the environment or a .env file:
# Required - Your Zoom OAuth credentials
ZM_RTMS_CLIENT=your_client_id
ZM_RTMS_SECRET=your_client_secret
# Recommended - Webhook Secret Token (Marketplace > your app > Features > Access > Secret Token)
# Enables built-in webhook signature verification. This is NOT ZM_RTMS_SECRET.
ZM_RTMS_WEBHOOK_SECRET=your_webhook_secret_token
# Optional - Webhook server configuration
ZM_RTMS_PORT=8080
ZM_RTMS_PATH=/webhook
# Optional - Logging configuration
ZM_RTMS_LOG_LEVEL=debug # off, error, warn, info (default), debug, trace
ZM_RTMS_LOG_FORMAT=progressive # progressive or json
ZM_RTMS_LOG_ENABLED=true # true or falseWhen ZM_RTMS_WEBHOOK_SECRET is set, the built-in webhook server verifies every request's x-zm-signature before calling your handler. Forged or stale requests get a 401, and Zoom's endpoint.url_validation challenge is answered for you. Without it, requests aren't verified and a warning is logged.
For more details, see our Quickstart App
import rtms from "@zoom/rtms";
// CommonJS
// const rtms = require('@zoom/rtms').default;
const clients = new Map();
// With ZM_RTMS_WEBHOOK_SECRET set, this callback only runs for requests
// whose x-zm-signature has been verified.
rtms.onWebhookEvent(({ event, payload }) => {
const streamId = payload?.rtms_stream_id;
if (event === "meeting.rtms_stopped") {
clients.get(streamId)?.leave();
clients.delete(streamId);
return;
}
if (event !== "meeting.rtms_started") return;
const client = new rtms.Client();
clients.set(streamId, client);
client.onTranscriptData((data, size, timestamp, metadata) => {
console.log(`[transcript] ts=${timestamp} user="${metadata.userName}": ${data.toString("utf8")}`);
});
client.join(payload);
});Production note: Always set
ZM_RTMS_WEBHOOK_SECRETso forged webhooks are rejected beforejoin()runs. For Express/Fastify, custom validation, and theverifyWebhookSignaturehelper, see Webhook Validation.
For more details, see our Quickstart App
Create a virtual environment and install dependencies:
# Create virtual environment
python3 -m venv .venv
# Activate virtual environment
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install python-dotenv
# Install RTMS SDK
pip install rtmsimport rtms
from dotenv import load_dotenv
load_dotenv()
clients = {}
# With ZM_RTMS_WEBHOOK_SECRET set, this handler only runs for requests
# whose x-zm-signature has been verified.
@rtms.on_webhook_event
def handle_webhook(webhook):
event = webhook.get('event')
payload = webhook.get('payload', {})
stream_id = payload.get('rtms_stream_id')
if event == 'meeting.rtms_stopped':
client = clients.pop(stream_id, None)
if client:
client.leave()
return
if event != 'meeting.rtms_started':
return
client = rtms.Client()
clients[stream_id] = client
@client.on_transcript_data
def _(data, _, timestamp, metadata):
print(f'[transcript] ts={timestamp} user="{metadata.userName}": {data.decode()}')
client.join(payload)
rtms.run()Production note: Always set
ZM_RTMS_WEBHOOK_SECRETso forged webhooks are rejected beforejoin()runs. For FastAPI/Flask/aiohttp (rtms.webhook_handler), custom validation, and theverify_webhook_signaturehelper, see Webhook Validation.
If you encounter issues some of these steps may help.
Symptoms:
- Immediate crash when requiring/importing the module
- Error message:
Segmentation fault (core dumped) - Stack trace shows
napi_module_register_by_symbol
Root Cause: Using an unsupported Node.js version (older than 22.20.0, or 24.0–24.4)
Solution: See Using NVM
Prevention:
- Use Node.js 22.20.0+, 24.5.0+ or 26
- Use recommended version with
.nvmrc:nvm use(Node.js 26 LTS) - Check version before installing:
node --version
On Linux, join() throws The RTMS SDK on Linux requires Node.js 22.20.0+ or 24.5.0+ (OpenSSL 3.5 or newer): your Node.js uses an older OpenSSL (node -p process.versions.openssl). Upgrade Node.js. A Node.js from your distribution's packages may be linked to the system OpenSSL; use a build from nodejs.org or nvm instead.
On Linux, loading fails with version `GLIBC_2.xx' not found: the Linux prebuilds and the RTMS SDK need glibc 2.34 or newer (Ubuntu 22.04+, Debian 12+, RHEL 9+, Fedora 35+).
Verify you're using a supported platform (darwin-arm64 or linux-x64). If a feature throws "... is not supported by the RTMS SDK on this platform", it needs the Linux RTMS SDK 2026-11. Check rtms.SdkFeatures (Node.js) or rtms.SDK_FEATURES (Python) and see RTMS SDK Version per Platform.
Ensure RTMS C++ SDK files are correctly placed in the appropriate lib directory
Try both debug and release modes (npm run debug or npm run release)
Verify all prerequisites are installed
This SDK uses different default audio parameters than the raw RTMS WebSocket protocol for better out-of-the-box quality. If you need to match the WebSocket protocol defaults, see #92 for details.
When using AUDIO_MIXED_STREAM, the audio callback's metadata does not identify the current speaker since all participants are mixed into a single stream. To identify who is speaking, use the onActiveSpeakerEvent callback:
Node.js:
client.onActiveSpeakerEvent((timestamp, userId, userName) => {
console.log(`Active speaker: ${userName} (${userId})`);
});Python:
@client.onActiveSpeakerEvent
def on_active_speaker(timestamp, user_id, user_name):
print(f"Active speaker: {user_name} ({user_id})")This callback notifies your application whenever the active speaker changes in the meeting. You can also use the lower-level onEventEx function with the active speaker event type directly. See #80 for more details.
With ZM_RTMS_WEBHOOK_SECRET set, each failed verification logs a one-line WARN with the reason: missing-headers, stale-timestamp (more than 300 s of clock skew), or mismatch. A mismatch usually means the wrong secret, so use the app's Secret Token, not the OAuth client secret. It can also mean a body that was re-serialized before verification. Set ZM_RTMS_DEBUG_SIGNATURES=true temporarily to log the first 12 hex characters of the received and computed signatures (never the full HMAC), skew, and body excerpts. The secret is never logged, but payloads can contain PII, so turn it off afterwards.
The RTMS C++ SDK writes rotating log files to ./logs, relative to the working directory, and prints this error when the directory doesn't exist. Set ZM_RTMS_SDK_LOG_FILES=true to create ./logs at initialize. The files can total several hundred MB, so in containers mount a volume or an emptyDir there.
The RTMS SDK can be built from source using either Docker (recommended) or local build tools.
- Docker and Docker Compose
- Zoom RTMS C++ SDK files (contact Zoom for access)
- Task installed (or use Docker's Task installation)
# Clone the repository
git clone https://github.com/zoom/rtms.git
cd rtms
# Place your SDK library files in the lib/{arch} folder
# For linux-x64:
cp ../librtmsdk.0.2025xxxx/librtmsdk.so.0 lib/linux-x64
# For darwin-arm64 (Apple Silicon):
cp ../librtmsdk.0.2025xxxx/librtmsdk.dylib lib/darwin-arm64
# Place the include files in the proper directory
cp ../librtmsdk.0.2025xxxx/h/* lib/include
# Build using Docker Compose with Task
docker compose run --rm build task build:js # Build Node.js for linux-x64
docker compose run --rm build task build:py # Build Python wheel for linux-x64
# Or use convenience services
docker compose run --rm test-js # Build and test Node.js
docker compose run --rm test-py # Build and test PythonDocker Compose creates distributable packages for linux-x64 (prebuilds for Node.js, wheels for Python). Use this when developing on macOS to build Linux packages for distribution.
- Node.js 22.20.0+ or 24.5.0+ (26 LTS recommended)
- Python 3.11+ with pip (for Python build)
- CMake 3.25+
- C/C++ build tools
- Task (go-task) - https://taskfile.dev/installation/
- Zoom RTMS C++ SDK files (contact Zoom for access)
# Install system dependencies
## macOS
brew install cmake go-task python@3.15 node@26
## Linux
sudo apt update
sudo apt install -y cmake python3-full python3-pip npm
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
# Clone and set up the repository
git clone https://github.com/zoom/rtms.git
cd rtms
# Place SDK files in the appropriate lib directory
# lib/linux-x64/ or lib/darwin-arm64/
# Verify your environment meets requirements
task doctor
# Setup project (fetches SDK if not present, installs dependencies)
task setup
# Build for specific language and platform
task build:js # Build Node.js for current platform
task build:js:linux # Build Node.js for Linux (via Docker)
task build:js:darwin # Build Node.js for macOS
task build:py # Build Python for current platform
task build:py:linux # Build Python wheel for Linux (via Docker)
task build:py:darwin # Build Python wheel for macOSThe project uses Task (go-task) for build orchestration. Commands follow the pattern: task <action>:<lang>:<platform>
# See all available commands
task --list
# Verify environment
task doctor # Check Node, Python, CMake, Docker versions
# Setup project
task setup # Fetch SDK and install dependencies
# Build modes
BUILD_TYPE=Debug task build:js # Build in debug mode
BUILD_TYPE=Release task build:js # Build in release mode (default)
# Debug logging for C++ SDK callbacks
RTMS_DEBUG=ON task build:js # Enable verbose callback loggingFor detailed contribution guidelines, build instructions, and troubleshooting, see CONTRIBUTING.md.
If you're a maintainer looking to build, test, or publish new releases of the RTMS SDK, please refer to PUBLISHING.md
This project is licensed under the MIT License - see the LICENSE.md file for details.