@videojs/react— React component library with hooks and typed stores@videojs/html— Custom elements library for framework-free environments
Install
- React
- HTML (custom elements)
@videojs/react requires React 16.8 or later as a peer dependency.CDN (HTML only)
For HTML environments you can also load@videojs/html directly from a CDN without a build step.
index.html
TypeScript
Both packages are written in TypeScript and ship declaration files. No additional configuration is required — types are included automatically when you install.Peer dependencies
| Package | Peer dependency |
|---|---|
@videojs/react | react >= 16.8.0 |
@videojs/html | None |
Next steps
React integration
Set up a player in a React app with components and hooks.
HTML custom elements
Use Video.js in any HTML page or framework-free project.
Media sources
Add HLS, DASH, and other media sources to your player.
Custom features
Compose and extend the player’s feature set.