build zoom video sdk app

Skill

Reference skill for Zoom Video SDK. Use after routing to a custom-session workflow when the user needs full control over the video experience rather than an actual Zoom meeting.

Files145
  • @skills/video-sdk/RUNBOOK.md
  • @skills/video-sdk/SKILL.md
  • @skills/video-sdk/android/RUNBOOK.md
  • @skills/video-sdk/android/SKILL.md
  • @skills/video-sdk/android/android.md
  • @skills/video-sdk/android/concepts/architecture.md
  • @skills/video-sdk/android/concepts/lifecycle-workflow.md
  • @skills/video-sdk/android/examples/session-join-pattern.md
  • @skills/video-sdk/android/references/android-reference-map.md
  • @skills/video-sdk/android/references/environment-variables.md
  • @skills/video-sdk/android/references/versioning-and-compatibility.md
  • @skills/video-sdk/android/scenarios/high-level-scenarios.md
  • @skills/video-sdk/android/troubleshooting/common-issues.md
  • @skills/video-sdk/flutter/RUNBOOK.md
  • @skills/video-sdk/flutter/SKILL.md
  • @skills/video-sdk/flutter/concepts/high-level-scenarios.md
  • @skills/video-sdk/flutter/concepts/lifecycle-workflow.md
  • @skills/video-sdk/flutter/concepts/sdk-architecture-pattern.md
  • @skills/video-sdk/flutter/examples/event-handling-pattern.md
  • @skills/video-sdk/flutter/examples/session-join-pattern.md
  • @skills/video-sdk/flutter/examples/setup-guide.md
  • @skills/video-sdk/flutter/references/flutter-reference.md
  • @skills/video-sdk/flutter/references/module-map.md
  • @skills/video-sdk/flutter/references/official-sources.md
  • @skills/video-sdk/flutter/troubleshooting/common-issues.md
  • @skills/video-sdk/flutter/troubleshooting/deprecated-and-contradictions.md
  • @skills/video-sdk/flutter/troubleshooting/version-drift.md
  • @skills/video-sdk/ios/RUNBOOK.md
  • @skills/video-sdk/ios/SKILL.md
  • @skills/video-sdk/ios/concepts/architecture.md
  • @skills/video-sdk/ios/concepts/lifecycle-workflow.md
  • @skills/video-sdk/ios/examples/session-join-pattern.md
  • @skills/video-sdk/ios/ios.md
  • @skills/video-sdk/ios/references/environment-variables.md
  • @skills/video-sdk/ios/references/ios-reference-map.md
  • @skills/video-sdk/ios/references/versioning-and-compatibility.md
  • @skills/video-sdk/ios/scenarios/high-level-scenarios.md
  • @skills/video-sdk/ios/troubleshooting/common-issues.md
  • @skills/video-sdk/linux/RUNBOOK.md
  • @skills/video-sdk/linux/SKILL.md
  • @skills/video-sdk/linux/concepts/raw-data-vs-canvas.md
  • @skills/video-sdk/linux/concepts/sdk-architecture-pattern.md
  • @skills/video-sdk/linux/concepts/singleton-hierarchy.md
  • @skills/video-sdk/linux/examples/chat.md
  • @skills/video-sdk/linux/examples/cloud-recording.md
  • @skills/video-sdk/linux/examples/command-channel.md
  • @skills/video-sdk/linux/examples/live-streaming.md
  • @skills/video-sdk/linux/examples/qt-gtk-integration.md
  • @skills/video-sdk/linux/examples/raw-audio-capture.md
  • @skills/video-sdk/linux/examples/raw-video-capture.md
  • @skills/video-sdk/linux/examples/session-join-pattern.md
  • @skills/video-sdk/linux/examples/transcription.md
  • @skills/video-sdk/linux/examples/virtual-audio-video.md
  • @skills/video-sdk/linux/linux.md
  • @skills/video-sdk/linux/references/linux-reference.md
  • @skills/video-sdk/linux/troubleshooting/build-errors.md
  • @skills/video-sdk/linux/troubleshooting/common-issues.md
  • @skills/video-sdk/linux/troubleshooting/pulseaudio-setup.md
  • @skills/video-sdk/linux/troubleshooting/qt-dependencies.md
  • @skills/video-sdk/macos/RUNBOOK.md
  • @skills/video-sdk/macos/SKILL.md
  • @skills/video-sdk/macos/concepts/architecture.md
  • @skills/video-sdk/macos/concepts/lifecycle-workflow.md
  • @skills/video-sdk/macos/examples/session-join-pattern.md
  • @skills/video-sdk/macos/macos.md
  • @skills/video-sdk/macos/references/environment-variables.md
  • @skills/video-sdk/macos/references/macos-reference-map.md
  • @skills/video-sdk/macos/references/versioning-and-compatibility.md
  • @skills/video-sdk/macos/scenarios/high-level-scenarios.md
  • @skills/video-sdk/macos/troubleshooting/common-issues.md
  • @skills/video-sdk/react-native/RUNBOOK.md
  • @skills/video-sdk/react-native/SKILL.md
  • @skills/video-sdk/react-native/concepts/high-level-scenarios.md
  • @skills/video-sdk/react-native/concepts/lifecycle-workflow.md
  • @skills/video-sdk/react-native/concepts/sdk-architecture-pattern.md
  • @skills/video-sdk/react-native/examples/event-handling-pattern.md
  • @skills/video-sdk/react-native/examples/session-join-pattern.md
  • @skills/video-sdk/react-native/examples/setup-guide.md
  • @skills/video-sdk/react-native/references/module-map.md
  • @skills/video-sdk/react-native/references/official-sources.md
  • @skills/video-sdk/react-native/references/react-native-reference.md
  • @skills/video-sdk/react-native/troubleshooting/common-issues.md
  • @skills/video-sdk/react-native/troubleshooting/deprecated-and-contradictions.md
  • @skills/video-sdk/react-native/troubleshooting/version-drift.md
  • @skills/video-sdk/references/authorization.md
  • @skills/video-sdk/references/environment-variables.md
  • @skills/video-sdk/references/forum-top-questions.md
  • @skills/video-sdk/references/licensing-and-entitlements.md
  • @skills/video-sdk/references/session-lifecycle.md
  • @skills/video-sdk/references/token-contract-test-spec.md
  • @skills/video-sdk/references/triage-intake.md
  • @skills/video-sdk/references/troubleshooting.md
  • @skills/video-sdk/references/ui-toolkit.md
  • @skills/video-sdk/unity/RUNBOOK.md
  • @skills/video-sdk/unity/SKILL.md
  • @skills/video-sdk/unity/concepts/architecture.md
  • @skills/video-sdk/unity/concepts/lifecycle-workflow.md
  • @skills/video-sdk/unity/examples/session-join-pattern.md
  • @skills/video-sdk/unity/references/environment-variables.md
  • @skills/video-sdk/unity/references/unity-reference-map.md
  • @skills/video-sdk/unity/references/versioning-and-compatibility.md
  • @skills/video-sdk/unity/scenarios/high-level-scenarios.md
  • @skills/video-sdk/unity/troubleshooting/common-issues.md
  • @skills/video-sdk/unity/unity.md
  • @skills/video-sdk/web/RUNBOOK.md
  • @skills/video-sdk/web/SKILL.md
  • @skills/video-sdk/web/concepts/sdk-architecture-pattern.md
  • @skills/video-sdk/web/concepts/singleton-hierarchy.md
  • @skills/video-sdk/web/examples/chat.md
  • @skills/video-sdk/web/examples/command-channel.md
  • @skills/video-sdk/web/examples/event-handling.md
  • @skills/video-sdk/web/examples/framework-integrations.md
  • @skills/video-sdk/web/examples/react-hooks.md
  • @skills/video-sdk/web/examples/recording.md
  • @skills/video-sdk/web/examples/screen-share.md
  • @skills/video-sdk/web/examples/session-join-pattern.md
  • @skills/video-sdk/web/examples/transcription.md
  • @skills/video-sdk/web/examples/video-rendering.md
  • @skills/video-sdk/web/references/events-reference.md
  • @skills/video-sdk/web/references/web-reference.md
  • @skills/video-sdk/web/references/web.md
  • @skills/video-sdk/web/troubleshooting/common-issues.md
  • @skills/video-sdk/windows/RUNBOOK.md
  • @skills/video-sdk/windows/SKILL.md
  • @skills/video-sdk/windows/concepts/canvas-vs-raw-data.md
  • @skills/video-sdk/windows/concepts/sdk-architecture-pattern.md
  • @skills/video-sdk/windows/concepts/singleton-hierarchy.md
  • @skills/video-sdk/windows/examples/cloud-recording.md
  • @skills/video-sdk/windows/examples/command-channel.md
  • @skills/video-sdk/windows/examples/dotnet-winforms/README.md
  • @skills/video-sdk/windows/examples/raw-audio-capture.md
  • @skills/video-sdk/windows/examples/raw-video-capture.md
  • @skills/video-sdk/windows/examples/screen-share-subscription.md
  • @skills/video-sdk/windows/examples/send-raw-audio.md
  • @skills/video-sdk/windows/examples/send-raw-video.md
  • @skills/video-sdk/windows/examples/session-join-pattern.md
  • @skills/video-sdk/windows/examples/transcription.md
  • @skills/video-sdk/windows/examples/video-rendering.md
  • @skills/video-sdk/windows/references/delegate-methods.md
  • @skills/video-sdk/windows/references/samples.md
  • @skills/video-sdk/windows/references/windows-reference.md
  • @skills/video-sdk/windows/troubleshooting/build-errors.md
  • @skills/video-sdk/windows/troubleshooting/common-issues.md
  • @skills/video-sdk/windows/troubleshooting/windows-message-loop.md
  • @skills/video-sdk/windows/windows.md

/build-zoom-video-sdk-app

Background reference for fully custom video-session products. Prefer plan-zoom-product first when the boundary between Meeting SDK and Video SDK is still unclear.
Build custom video experiences powered by Zoom's infrastructure.

Hard Routing Guardrail (Read First)

  • If the user asks for custom real-time video app behavior (topic/session join, custom rendering, attach/detach), route to Video SDK.
  • Do not switch to REST meeting endpoints for Video SDK join flows.
  • Video SDK does not use Meeting IDs, join_url, or Meeting SDK join payload fields (meetingNumber, passWord).

Meeting SDK vs Video SDK

FeatureMeeting SDKVideo SDK
UIDefault Zoom UI or Custom UIFully custom UI (you build it)
ExperienceZoom meetingsVideo sessions
BrandingLimited customizationFull branding control
FeaturesFull Zoom featuresCore video features

UI Options (Web)

Video SDK gives you full control over the UI:
OptionDescription
UI ToolkitPre-built React components (low-code)
Custom UIBuild your own UI using the SDK APIs

Prerequisites

  • Zoom Video SDK credentials from Marketplace
  • SDK Key and Secret
  • Web development environment
Need help with OAuth or signatures? See the zoom-oauth skill for authentication flows.
Need pre-join diagnostics on web? Use probe-sdk before Video SDK join() to reduce first-minute failures.
Start troubleshooting fast: Use the 5-Minute Runbook [blocked] before deep debugging.

Quick Start (Web)

NPM Usage (Bundler like Vite/Webpack)

javascript
import ZoomVideo from '@zoom/videosdk';

const client = ZoomVideo.createClient();
await client.init('en-US', 'Global', { patchJsMedia: true });
await client.join(topic, signature, userName, password);

// IMPORTANT: getMediaStream() ONLY works AFTER join()
const stream = client.getMediaStream();
await stream.startVideo();
await stream.startAudio();

CDN Usage (No Bundler)

WARNING: Ad blockers block source.zoom.us. Self-host the SDK to avoid issues.
bash
# Download SDK locally
curl "https://source.zoom.us/videosdk/zoom-video-1.12.0.min.js" -o js/zoom-video-sdk.min.js
html
<script src="js/zoom-video-sdk.min.js"></script>
javascript
// CDN exports as WebVideoSDK, NOT ZoomVideo
// Must use .default property
const ZoomVideo = WebVideoSDK.default;
const client = ZoomVideo.createClient();

await client.init('en-US', 'Global', { patchJsMedia: true });
await client.join(topic, signature, userName, password);

// IMPORTANT: getMediaStream() ONLY works AFTER join()
const stream = client.getMediaStream();
await stream.startVideo();
await stream.startAudio();

ES Module with CDN (Race Condition Fix)

When using <script type="module"> with CDN, SDK may not be loaded yet:
javascript
// Wait for SDK to load before using
function waitForSDK(timeout = 10000) {
  return new Promise((resolve, reject) => {
    if (typeof WebVideoSDK !== 'undefined') {
      resolve();
      return;
    }
    const start = Date.now();
    const check = setInterval(() => {
      if (typeof WebVideoSDK !== 'undefined') {
        clearInterval(check);
        resolve();
      } else if (Date.now() - start > timeout) {
        clearInterval(check);
        reject(new Error('SDK failed to load'));
      }
    }, 100);
  });
}

// Usage
await waitForSDK();
const ZoomVideo = WebVideoSDK.default;
const client = ZoomVideo.createClient();

SDK Lifecycle (CRITICAL ORDER)

The SDK has a strict lifecycle. Violating it causes silent failures.
text
1. Create client:     client = ZoomVideo.createClient()
2. Initialize:        await client.init('en-US', 'Global', options)
3. Join session:      await client.join(topic, signature, userName, password)
4. Get stream:        stream = client.getMediaStream()  ← ONLY AFTER JOIN
5. Start media:       await stream.startVideo() / await stream.startAudio()
Common Mistake (Silent Failure):
javascript
// ❌ WRONG: Getting stream before joining
const client = ZoomVideo.createClient();
await client.init('en-US', 'Global');
const stream = client.getMediaStream();  // Returns undefined!
await client.join(...);

// ✅ CORRECT: Get stream after joining
const client = ZoomVideo.createClient();
await client.init('en-US', 'Global');
await client.join(...);
const stream = client.getMediaStream();  // Works!

Video Rendering (Event-Driven)

The SDK is event-driven. You must listen for events and render videos accordingly.

Use attachVideo() NOT renderVideo()

javascript
import { VideoQuality } from '@zoom/videosdk';

// Start your camera
await stream.startVideo();

// Attach video - returns element to append to DOM
const element = await stream.attachVideo(userId, VideoQuality.Video_360P);
container.appendChild(element);

// Detach when done
await stream.detachVideo(userId);

Required Events

javascript
// When other participant's video turns on/off
client.on('peer-video-state-change', async (payload) => {
  const { action, userId } = payload;
  if (action === 'Start') {
    const el = await stream.attachVideo(userId, VideoQuality.Video_360P);
    container.appendChild(el);
  } else {
    await stream.detachVideo(userId);
  }
});

// When participants join/leave
client.on('user-added', (payload) => { /* check bVideoOn */ });
client.on('user-removed', (payload) => { stream.detachVideo(payload.userId); });
See web/references/web.md [blocked] for complete event handling patterns.

Key Concepts

ConceptDescription
SessionVideo session (not a meeting)
TopicSession identifier (any string you choose)
SignatureJWT for authorization
MediaStreamAudio/video stream control

Session Creation Model

Important: Video SDK sessions are created just-in-time, not in advance.
AspectVideo SDKMeeting SDK
Pre-creationNOT requiredCreate meeting via API first
Session startFirst participant joins with topicJoin existing meeting ID
TopicAny string (you define it)Meeting ID from API
SchedulingN/A - sessions are ad-hocMeetings can be scheduled

How Sessions Work

  1. No pre-creation needed: Sessions don't exist until someone joins
  2. Topic = Session ID: Any participants joining with the same topic string join the same session
  3. First join creates it: The session is created when the first participant joins
  4. No meeting ID: There's no numeric meeting ID like in Zoom Meetings
javascript
// Session is created on-the-fly when first user joins
// Any string can be the topic - it becomes the session identifier
await client.join('my-custom-session-123', signature, 'User Name');

// Other participants join the SAME session by using the SAME topic
await client.join('my-custom-session-123', signature, 'Another User');

Signature Endpoint Setup

The signature endpoint must be accessible from your frontend without CORS issues.
Option 1: Same-Origin Proxy (Recommended)
nginx
# Nginx config
location /api/ {
    proxy_pass http://YOUR_BACKEND_HOST:3005/api/;
    proxy_http_version 1.1;
    proxy_set_header Host $host;
}
javascript
// Frontend uses relative URL (same origin)
const response = await fetch('/api/signature', { ... });
Option 2: CORS Configuration
javascript
// Express.js backend
const cors = require('cors');
app.use(cors({
  origin: ['https://your-domain.com'],
  credentials: true
}));
WARNING: Mixed content (HTTPS page → HTTP API) will be blocked by browsers.

Use Cases

Use CaseDescription
Video SDK BYOS (Bring Your Own Storage)Save recordings directly to your S3 bucket

BYOS (Bring Your Own Storage)

Video SDK feature - Zoom saves cloud recordings directly to your Amazon S3 bucket. No downloading required.
Prerequisites:
  • Video SDK account with Cloud Recording add-on (Universal Credit includes this)
  • AWS S3 bucket
Authentication options:
  1. AWS Access Key - simpler setup
  2. Cross Account Access - more secure (IAM role assumption)
S3 path structure:
Buckets/{bucketName}/cmr/byos/{YYYY}/{MM}/{DD}/{GUID}/cmr_byos/
Key benefits:
  • Zero download bandwidth costs
  • Direct storage during recording
  • Config-only setup (no webhook/download code needed)
Setup location: Developer Portal → Account Settings → General → Communications Content Storage Location

Detailed References

UI & Components

  • references/ui-toolkit.md [blocked] - Pre-built UI components (Web)
  • references/triage-intake.md [blocked] - What to ask first (turn vague reports into answers)
  • references/session-lifecycle.md [blocked] - Correct API ordering + event-driven rendering
  • references/licensing-and-entitlements.md [blocked] - License/admin prerequisites
  • references/token-contract-test-spec.md [blocked] - Shared backend token contract and cross-platform smoke test

Platform Guides

  • references/authorization.md [blocked] - Video SDK JWT generation
  • web/SKILL.md [blocked] - Web Video SDK (JavaScript/TypeScript)
    • web/SKILL.md [blocked] - Complete documentation navigation
    • web/examples/react-hooks.md [blocked] - Official React hooks library
    • web/examples/framework-integrations.md [blocked] - Next.js, Vue/Nuxt patterns
  • react-native/SKILL.md [blocked] - React Native Video SDK (mobile wrapper, helper/event architecture)
    • react-native/SKILL.md [blocked] - React Native documentation navigation
    • react-native/examples/session-join-pattern.md [blocked] - Tokenized session join flow
  • flutter/SKILL.md [blocked] - Flutter Video SDK (mobile wrapper, event-driven architecture)
    • flutter/SKILL.md [blocked] - Flutter documentation navigation
    • flutter/examples/session-join-pattern.md [blocked] - Tokenized session join flow
  • android/SKILL.md [blocked] - Android Video SDK (native mobile custom UI, tokenized sessions)
  • ios/SKILL.md [blocked] - iOS Video SDK (native mobile custom UI, delegate-driven lifecycle)
  • macos/SKILL.md [blocked] - macOS Video SDK (desktop native apps, custom session windows)
  • unity/SKILL.md [blocked] - Unity Video SDK wrapper (game-engine integration, scene-driven UX)
  • linux/SKILL.md [blocked] - Linux Video SDK overview (C++ headless bots)
  • linux/linux.md [blocked] - Linux C++ SDK (headless bots, raw media capture/injection)
  • linux/references/linux-reference.md [blocked] - Linux API Reference
  • windows/SKILL.md [blocked] - Windows C++ SDK (desktop applications, raw media capture/injection)
  • windows/references/windows-reference.md [blocked] - Windows API Reference
  • references/troubleshooting.md [blocked] - Common issues and solutions
  • references/forum-top-questions.md [blocked] - Common forum question patterns (what to cover)

Sample Repositories

Official (by Zoom)

Resources

Environment Variables

  • See references/environment-variables.md [blocked] for standardized .env keys and where to find each value.

Linux Operations

  • linux/RUNBOOK.md [blocked] - Linux platform preflight and debugging checklist.
build-zoom-video-sdk-app — Kortix Marketplace | Kortix