ReferenceError codes
Error Codes
Error codes emitted by the video.js package and how to resolve them
Playback failures use the error feature instead. See Handle playback errors for application handling.
Video.js 8 Error Codes
The video.js package throws these VJS8_LEGACY_* errors when code calls a Video.js 8 API that does not exist in Video.js 10. Each code identifies the old API and its Video.js 10 equivalent.
- VJS8_LEGACY_INIT
videojs()was the Video.js 8 API. Video.js 10 has no factory; players are components you compose. - VJS8_LEGACY_PLUGIN
videojs.registerPlugin()was the Video.js 8 plugin system. Video.js 10 has no plugin registry. - VJS8_LEGACY_COMPONENT
videojs.registerComponent()was the Video.js 8 component tree. Video.js 10 components are custom elements and React components. - VJS8_LEGACY_GET_PLAYER
videojs.getPlayer()looked players up by id. Video.js 10 has no registry; hold a reference to the element. - VJS8_LEGACY_OPTIONS
videojs.optionsheld Video.js 8 global defaults. Video.js 10 has no global; configuration lives on the components you render.