
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@vonage/client-sdk-video
Advanced tools
The OpenTok.js library lets you use OpenTok-powered video sessions on the web
The Vonage Video API library lets you use Vonage-powered video sessions on the web.
yarn add @vonage/client-sdk-video
or
npm install --save @vonage/client-sdk-video
The library is bundled as a standalone UMD module so it is CommonJS compatible.
Create your application file app.js:
const OT = require('@vonage/client-sdk-video');
const publisher = OT.initPublisher();
Bundle the application with your favorite bundler. For browserify just run:
browserify app.js > bundle.js
And include the bundle in your webpage:
<script src="bundle.js"></script>
Source maps can be found in dist/js/. Make sure your bundler is configured to include them if you need to generate source maps.
Include the dist/js/opentok.min.js script in your webpage.
Then use the OT object exposed in the global scope.
<script src="node_modules/@vonage/client-sdk-video/dist/js/opentok.min.js"></script>
<script>
const publisher = OT.initPublisher();
</script>
Note: Vonage Video API automatically loads CSS and image files from the TokBox CDN when included in a webpage.
The API reference and tutorials can be found at https://developer.vonage.com/en/video/client-sdks/web/overview
FAQs
The OpenTok.js library lets you use OpenTok-powered video sessions on the web
The npm package @vonage/client-sdk-video receives a total of 1,746 weekly downloads. As such, @vonage/client-sdk-video popularity was classified as popular.
We found that @vonage/client-sdk-video demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 52 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.