Skip to content

ReferenceError codes

VJS8_LEGACY_GET_PLAYER

Legacy Video.js 8 player lookup error

videojs.getPlayer() looked players up by id. Video.js 10 has no registry; hold a reference to the element.

Trigger

const player = videojs.getPlayer('my-video');

Video.js 10 equivalent

document.querySelector('video-player') and call actions on its store.state.

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.