# VJS8_LEGACY_INIT

Legacy Video.js 8 player initialization error

`videojs()` was the Video.js 8 API. Video.js 10 has no factory; players are components you compose.

## Trigger

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

## Video.js 10 equivalent

`import { Video, VideoPlayer, VideoSkin } from '@videojs/react/video'` and render `<VideoPlayer><VideoSkin><Video src /></VideoSkin></VideoPlayer>`.

See [Migrate from Video.js 8](https://videojs.org/docs/framework/react/guides/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](https://legacy.videojs.org). Pin the major version with `npm install video.js@8` to keep using it.

---

React documentation: https://videojs.org/docs/framework/react/llms.txt
All documentation: https://videojs.org/llms.txt
