Replace <version> with an exact @videojs/cdn version in every CDN URL. A range can resolve each file to a different
release, and their shared chunks don't match.
AI Quickstart
Using an AI coding agent? Print the steps to install the Video.js skill, which
teaches your agent to read the docs that match your Video.js version before writing code:
npx @videojs/cli agents skills
Then print version-matched installation instructions for your framework:
Run agents init without flags to list every option, such as the CDN method, skins, and media sources. Neither command
changes your project. npx downloads only the small @videojs/cli package, not a player.
Video.js 8
Video.js 8 is alive and well. Brightcove maintains it as the legacy release line, with security fixes until October 1,
2028. Pin the major version to install it:
Ready to move a v8 player to Video.js 10? Follow the migration guide for HTML or React.
What this package contains
This package has no player and no dependencies. @videojs/core depends on it, so it appears in every @videojs/html
and @videojs/react install, but nothing imports it, so it adds nothing to your bundle.
Importing it registers no elements and doesn't scan the page, so v8 markup such as
<video class="video-js" data-setup="{}"> does nothing. It contains only shims, so v8 code that runs against Video.js 10
fails with a searchable code instead of "undefined is not a function":
The v8 module surface. The videojs() default export, registerPlugin, getPlugin, registerComponent,
getComponent, getPlayer, and options each throw a VJS8_LEGACY_* code that links to its error page. Development
builds add the explanation and the HTML and React equivalents; production builds throw only the code and link.
video.js/errors. The registry behind those codes: one entry per code with an explanation, the HTML and React
equivalents, and the stay-on-v8 line.
video.js/dist/video-js.css. The v8 stylesheet path, resolving to an empty file so a leftover import doesn't fail
the build.
Community
If you need help with anything related to Video.js 10, or if you'd like to casually chat with other members: