Skip to content

ReferenceError codes

VJS8_LEGACY_COMPONENT

Legacy Video.js 8 component registration error

videojs.registerComponent() was the Video.js 8 component tree. Video.js 10 components are custom elements and React components.

Trigger

videojs.registerComponent('MyButton', MyButton);

Video.js 10 equivalent

Define a custom element and place it inside <video-skin> or your own skin markup.

See Migrate from Video.js 8 for the full setup.

Video.js 8

Video.js 8 continues to receive security patches. Its documentation is at legacy.videojs.org. Pin the major version with npm install video.js@8 to keep using it.