dotorl / zoom-video-sdk-sample

zoom video sdk sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zoom Video SDK Sample App - Web

Use of this sample app is subject to our Terms of Use.

The Zoom Video SDK enables you to build custom video experiences with Zoom's core technology through a highly optimized WebAssembly module.

Installation

To get started, clone the repo:

$ git clone https://github.com/zoom/sample-app-videosdk.git

Setup

  1. Once cloned, navigate to the sample-app-videosdk/react-demo directory for the React sample or sample-app-videosdk/purejs-demo for the Vanilla JavaScript sample:

    $ cd sample-app-videosdk/react-demo or $ cd sample-app-videosdk/purejs-demo

    Primary differences are that the former is built in React and is a much more comprehensive overview of the Video SDK, while the latter showcases a very simple use-case for those uncomfortable with React

  2. Then install the dependencies:

    $ npm install

  3. Open the directory in your code editor.

  4. Open the react-demo/src/config/dev.ts or purejs-demo/src/js/config.js file respectively, and enter required session values for the variables:

    Key Value Description
    sdkKey Your Video SDK Key. Required.
    sdkSecret Your Video SDK Secret. Required.
    topic Required, a session name of your choice or the name of the session you are joining.
    name Required, a name for the participant.
    password Required, a session passcode of your choice or the passcode of the session you are joining.

    Example:

    {
      sdkKey: 'YOUR_VIDEO_SDK_KEY',
      sdkSecret: 'YOUR_VIDEO_SDK_SECRET',
      topic: 'Cool Cars',
      name: 'user123',
      password: 'abc123'
    }

    Reminder to not publish this sample app as is. Replace the frontend signature generator with a backend signature generator to keep your SDK Secret safe.

  5. Save config.js or dev.ts respectively.

  6. Run the app:

    $ npm start

Usage

  1. Navigate to http://localhost:3000. For the purejs-demo click "Join" or for the react-demo click one of the feature boxes.

Learn more about rendering multiple video streams.

For the full list of features and event listeners, as well as additional guides, see our Video SDK docs.

Need help?

If you're looking for help, try Developer Support or our Developer Forum. Priority support is also available with Premier Developer Support plans.

About

zoom video sdk sample

License:Other


Languages

Language:TypeScript 77.8%Language:JavaScript 10.3%Language:SCSS 7.9%Language:HTML 2.0%Language:CSS 1.9%Language:Shell 0.0%