anthropics/knowledge-work-plugins145 files

Build Zoom Video SDK App

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.

Specification
Skill ID
anthropics/knowledge-work-plugins/build-zoom-video-sdk-app
Publisher
anthropics
Repository
knowledge-work-plugins
Installs
0
Files
145
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

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

What this skill tells the agent

/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](../oauth/SKILL.md) skill for authentication flows.
Need pre-join diagnostics on web? Use [probe-sdk](../probe-sdk/SKILL.md) before Video SDK join() to reduce first-minute failures.
Start troubleshooting fast: Use the [5-Minute Runbook](RUNBOOK.md) before deep debugging.

Quick Start (Web)

NPM Usage (Bundler like Vite/Webpack)

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.
# Download SDK locally
curl "https://source.zoom.us/videosdk/zoom-video-1.12.0.min.js" -o js/zoom-video-sdk.min.js
<script src="js/zoom-video-sdk.min.js"></script>
// 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:

// 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.

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):

// ❌ 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()

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

// 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 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
// 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 config
location /api/ {
    proxy_pass http://YOUR_BACKEND_HOST:3005/api/;
    proxy_http_version 1.1;
    proxy_set_header Host $host;
}
// Frontend uses relative URL (same origin)
const response = await fetch('/api/signature', { ... });

Option 2: CORS Configuration

// 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

Use this skill in a project

Open any RiverX project, search the Skills panel for anthropics/knowledge-work-plugins/build-zoom-video-sdk-app, and install it in one click.

Use this skill