Skip to content

ReferenceError codes

VJS8_LEGACY_INIT

Legacy Video.js 8 player initialization error

videojs() was the Video.js 8 setup call. Video.js 10 does not set up a player from an element or id; players are components you compose.

Trigger

const player = videojs('my-video', { controls: true });

Video.js 10 equivalent

Install @videojs/html, import '@videojs/html/video/player' and import '@videojs/html/video/skin', and render <video-player><video-skin><video src></video></video-skin></video-player>.

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.