---
title: "Zoom Video SDKでアプリを作る（エージェント用スキル） | Orchestor"
description: "Zoom Video SDKで独自の映像セッションを構築するための参照情報です。通常のZoom会議ではなく、映像体験を自由に制御する用途を扱います。anthropics/knowledge-work-plugins が公開している「Zoom Video SDKでアプリを作る」の使い方を確認できます。"
canonical_url: "https://www.orchestor.io/ja/skills/anthropics/knowledge-work-plugins/video-sdk"
markdown_url: "https://www.orchestor.io/ja/skills/anthropics/knowledge-work-plugins/video-sdk.md"
---

[0f94653](https://github.com/anthropics/knowledge-work-plugins/commit/0f9465302d18cc503f46846404d270678dc2e971)[原文を開く](https://github.com/anthropics/knowledge-work-plugins/blob/0f9465302d18cc503f46846404d270678dc2e971/partner-built/zoom-plugin/skills/video-sdk/SKILL.md)

jordanecker-ant2026/12/01

原文 (選択中)

未翻訳

プレビュー (選択中)

372 行（空行を除く 283 行） · 13.61 KB原文

```yaml
name: build-zoom-video-sdk-app
description: 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.
triggers:
  - "custom video"
  - "video sdk"
  - "build video app"
  - "video session"
  - "video chat"
  - "video call"
  - "video conferencing"
  - "custom video ui"
  - "twitter spaces"
  - "clubhouse alternative"
  - "audio-only room"
  - "screen sharing"
  - "virtual background"
  - "native video sdk"
```

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

| Feature    | Meeting SDK                  | Video SDK                          |
| ---------- | ---------------------------- | ---------------------------------- |
| UI         | Default Zoom UI or Custom UI | **Fully custom UI** (you build it) |
| Experience | Zoom meetings                | Video sessions                     |
| Branding   | Limited customization        | **Full branding control**          |
| Features   | Full Zoom features           | Core video features                |

## UI Options (Web)

Video SDK gives you **full control over the UI**:

| Option         | Description                           |
| -------------- | ------------------------------------- |
| **UI Toolkit** | Pre-built React components (low-code) |
| **Custom UI**  | Build 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 **SKILL.md** skill for authentication flows.

> **Need pre-join diagnostics on web?** Use **SKILL.md** before Video SDK `join()` to reduce first-minute failures.

> **Start troubleshooting fast:** Use the **RUNBOOK.md** 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.

```
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.md for complete event handling patterns.

## Key Concepts

| Concept     | Description                                |
| ----------- | ------------------------------------------ |
| Session     | Video session (not a meeting)              |
| Topic       | Session identifier (any string you choose) |
| Signature   | JWT for authorization                      |
| MediaStream | Audio/video stream control                 |

## Session Creation Model

**Important**: Video SDK sessions are created **just-in-time**, not in advance.

| Aspect        | Video SDK                          | Meeting SDK                  |
| ------------- | ---------------------------------- | ---------------------------- |
| Pre-creation  | NOT required                       | Create meeting via API first |
| Session start | First participant joins with topic | Join existing meeting ID     |
| Topic         | Any string (you define it)         | Meeting ID from API          |
| Scheduling    | N/A - sessions are ad-hoc          | Meetings 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 Case                            | Description                                |
| ----------------------------------- | ------------------------------------------ |
| video-sdk-bring-your-own-storage.md | 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.

> **Official docs:** <https://developers.zoom.us/docs/build/storage/>

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

See **video-sdk-bring-your-own-storage.md** for complete setup guide.

## Detailed References

### UI & Components

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

### Platform Guides

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

## Sample Repositories

### Official (by Zoom)

| Type             | Repository                                                                                             | Stars |
| ---------------- | ------------------------------------------------------------------------------------------------------ | ----- |
| Web              | [videosdk-web-sample](https://github.com/zoom/videosdk-web-sample)                                     | 137   |
| Web NPM          | [videosdk-web](https://github.com/zoom/videosdk-web)                                                   | 56    |
| Auth             | [videosdk-auth-endpoint-sample](https://github.com/zoom/videosdk-auth-endpoint-sample)                 | 23    |
| UI Toolkit Web   | [videosdk-zoom-ui-toolkit-web](https://github.com/zoom/videosdk-zoom-ui-toolkit-web)                   | 17    |
| UI Toolkit React | [videosdk-zoom-ui-toolkit-react-sample](https://github.com/zoom/videosdk-zoom-ui-toolkit-react-sample) | 17    |
| Next.js          | [videosdk-nextjs-quickstart](https://github.com/zoom/videosdk-nextjs-quickstart)                       | 16    |
| Telehealth       | [VideoSDK-Web-Telehealth](https://github.com/zoom/VideoSDK-Web-Telehealth)                             | 11    |
| Linux            | [videosdk-linux-raw-recording-sample](https://github.com/zoom/videosdk-linux-raw-recording-sample)     | \-    |

**Full list**: See community-repos.md

## Resources

* **Official docs**: <https://developers.zoom.us/docs/video-sdk/>
* **Developer forum**: <https://devforum.zoom.us/>

## Environment Variables

* See environment-variables.md for standardized `.env` keys and where to find each value.

## Linux Operations

* RUNBOOK.md \- Linux platform preflight and debugging checklist.

## Structured data

```json
[
  [
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Orchestor",
      "url": "https://www.orchestor.io",
      "sameAs": [
        "https://orchestor.io",
        "https://www.orchestor.io",
        "https://docs.orchestor.io"
      ],
      "@id": "https://www.orchestor.io/#organization",
      "alternateName": [
        "オーケスター"
      ],
      "logo": "https://www.orchestor.io/images/common/ogp/orchestor-ogp.png",
      "parentOrganization": {
        "@type": "Organization",
        "name": "ドットメディア株式会社",
        "url": "https://www.dotmedia.co.jp"
      }
    },
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "url": "https://www.orchestor.io",
      "name": "Orchestor",
      "description": "Orchestor で画像・動画・音声を作り、参照素材を Remix できます。",
      "@id": "https://www.orchestor.io/#website",
      "alternateName": [
        "オーケスター"
      ],
      "inLanguage": "ja",
      "publisher": {
        "@id": "https://www.orchestor.io/#organization"
      }
    }
  ],
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://www.orchestor.io/skills/anthropics/knowledge-work-plugins/video-sdk#breadcrumb",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Orchestor",
        "item": "https://www.orchestor.io/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "スキル",
        "item": "https://www.orchestor.io/skills"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "Zoom Video SDKでアプリを作る",
        "item": "https://www.orchestor.io/skills/anthropics/knowledge-work-plugins/video-sdk"
      }
    ]
  }
]
```

---

[Documentation index](https://www.orchestor.io/llms.txt)
