# VJS8_LEGACY_PLUGIN

Legacy Video.js 8 plugin registration error

`videojs.registerPlugin()` was the Video.js 8 plugin system. Video.js 10 has no plugin registry.

## Trigger

```javascript
videojs.registerPlugin('myPlugin', function () { /* ... */ });
```

## Video.js 10 equivalent

Compose behavior as components inside `<video-player>`, or add an extension such as `@videojs/google-cast`.

See [Migrate from Video.js 8](../../guides/migrate-from-video-js-8.md) 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.