# VJS8_LEGACY_OPTIONS

Legacy Video.js 8 global options error

`videojs.options` held Video.js 8 global defaults. Video.js 10 has no global; configuration lives on the components you render.

## Trigger

```javascript
videojs.options.autoplay = true;
```

## Video.js 10 equivalent

Set attributes on `<video-player>`, `<video-skin>`, and the media element.

See [Migrate from Video.js 8](https://videojs.org/docs/framework/html/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.

---

HTML documentation: https://videojs.org/docs/framework/html/llms.txt
All documentation: https://videojs.org/llms.txt
