Use of this sample app is subject to our Terms of Use.
The Zoom Video SDK for web enables you to build custom video experiences on a webpage with Zoom's core technology.
This Sample offers a demo of the Hold Feature using Zoom Video SDK, enabling out-the-box waiting room functionality compatible between Video SDK platforms
- NPM and Node.js v24.7.0
- Active Video SDK Account
To get started, clone the repo:
git clone https://github.com/zoom/videosdk-web-hold.git
Navigate to the root directory:
cd videosdk-web-hold
and install the dependencies:
npm install
The project provides a generateToken.ts file that can be used to generate a temporary JWT:
- Create a
.envfile in the root directory of the project, you can do this by copying the.env.examplefile (cp .env.example .env) and replacing the values with your own. The.envfile should look like this:
ZOOM_SDK_KEY=
ZOOM_SDK_SECRET=
- Run
npm run token [sessionname] [role (0 or 1)] [hold (0, 1, or 2)] --copy-to-clipboard
The script generates a token for the proivded session name and the --copy-to-clipboard or -c flag copies it to your clipboard.
-
Run the app:
npm run dev
-
Navigate to http://localhost:5173
-
Click "Join" to join the session and enter your JWT Token
-
Depending on the role entered in your JWT you will either enter a waiting room as a participart or join the session with waiting room control features enabled
For the full list of features and event listeners, as well as additional guides, see our Video SDK docs.
If you're looking for help, try Developer Support or our Developer Forum. Priority support is also available with Premier Developer Support plans.
This app is for demo purposes and thus not production ready. Do not expose your credentials to the client, when using the Video SDK in production please make sure to use a backend service to sign the tokens. Don't store credentials in plain text, as this is a sample app we're using an .env for sake of simplicity.