# Migrate from Video.js 8

Move a Video.js 8 integration to v10, mapping the options object, techs, plugins, and player API onto composed components

Move your Video.js 8 setup to v10 by replacing `videojs()` with a player, media component, and skin. This guide maps your options, techs, plugins, and imperative calls to those pieces.

Video.js 10 ships as scoped `@videojs/*` packages. The `video.js` npm package contains no player; install `video.js@8` to stay on Video.js 8, whose [repository](https://github.com/videojs/videojs-v8) and [docs](https://legacy.videojs.org) remain available.

## Before you migrate

- List the options, techs, plugins, custom controls, and event handlers your app uses.
- Check [Known gaps](#known-gaps), especially ads and playlists, before replacing a working player. Plan to rewrite plugins that have no equivalent.
- Keep your existing media URLs, source formats, tracks, and required behavior. The first example uses an MP4 file. For an adaptive stream or an embed, use the matching media component.
- Choose an installation method and playback engine that fit your app and supported browsers. See [Installation](https://videojs.org/docs/guides/installation/react) and [Techs become media components](#techs-become-media-components).

## AI Quickstart

Paste this prompt into your coding agent:

```
Migrate this project's Video.js 8 player to Video.js v10 for React. Use @videojs/react.

Run `npx @videojs/cli agents skills` to get the Video.js skill installation instructions. Follow the printed steps for your agent. If they require a session reload, reload the session and continue with this prompt. If you can't run commands, use the installation instructions at https://github.com/videojs/skills. Use the skill throughout this migration.

Read the migration guide at https://videojs.org/docs/framework/react/guides/migrate-from-video-js-8, including its Known gaps section. Inspect the existing player and list its media URLs, source formats, tracks, options, custom controls, event handlers, and integrations. Compare that list with the known gaps and report unsupported requirements before changing code. Keep the existing media URLs and required behavior throughout the migration.

For installation guidance, read https://videojs.org/docs/framework/react/llms.txt and follow its link to the installation guide. Keep using that online index for a CDN installation.

From the application root, run `npx @videojs/cli agents init` without flags to list installation options and their accepted values.

Choose values for these options:
- --media and --source-url: the existing content and playback requirements.
- --method: the installation method.
- --preset, --skin, and --extensions: the player UI and integrations.

Add those options to `npx @videojs/cli agents init --framework react --project existing` and run the command to print the installation plan. Follow any version-mismatch notice. Both CLI commands print instructions without changing project files. Use the printed plan to install Video.js and configure the player.

After installing a package, switch to node_modules/@videojs/react/docs/llms.txt for documentation matching its version.

Implement the migration. Then verify playback, captions, controls, and any analytics integration on every browser the project supports.
```

## Your first player

v8 shipped no React package, so you were managing a ref, calling `videojs()` in an effect, and disposing on unmount. Something like this:

```tsx
import { useEffect, useRef } from 'react';
import videojs from 'video.js';
import 'video.js/dist/video-js.css';

export function MyPlayer() {
  const containerRef = useRef<HTMLDivElement>(null);
  const playerRef = useRef<ReturnType<typeof videojs> | null>(null);

  useEffect(() => {
    const el = document.createElement('video-js');
    containerRef.current?.appendChild(el);

    playerRef.current = videojs(el, {
      controls: true,
      preload: 'auto',
      poster: '/poster.jpg',
      sources: [{ src: '/video.mp4', type: 'video/mp4' }],
    });

    return () => playerRef.current?.dispose();
  }, []);

  return <div ref={containerRef} />;
}
```

Install the React package:

```bash
npm install @videojs/react
```

Use the general video [preset](https://videojs.org/docs/framework/react/guides/presets) for on-demand content:

```tsx
'use client';

import '@videojs/react/video/skin.css';
import { Video, VideoPlayer, VideoSkin } from '@videojs/react/video';

export function MyPlayer() {
  return (
    <VideoPlayer poster="/poster.jpg">
      <VideoSkin className="app-video-player" style={{ aspectRatio: '16 / 9' }}>
        <Video src="/video.mp4" preload="auto" playsInline />
      </VideoSkin>
    </VideoPlayer>
  );
}
```

`VideoPlayer` owns the player state. Read that state with the preset’s matching [`usePlayer`](https://videojs.org/docs/framework/react/reference/api/use-player) hook. You do not manage a ref or dispose the player yourself.

Apply these changes to your existing component:

- **No `videojs()` call and no effect.** `VideoPlayer` owns the lifecycle.
- **No `controls` prop.** The skin provides the controls. Render a skin to show controls. Leave it out for a player with no UI.
- **Move the poster URL to the player.** Pass `poster` to `VideoPlayer`. The skin controls how the poster appears.

Use `'use client'` at the client boundary in frameworks with React Server Components. For a smaller control layout, replace `VideoSkin` with `NeutralVideoSkin` and import `neutral-skin.css`.

If you have chapter tracks or thumbnail tracks (`kind="metadata" label="thumbnails"`), add `default` to each track so the browser loads its cues. Keep each track’s existing `src` URL.

When enabling captions without a previous selection in this player instance, `toggleSubtitles()` prefers a track matching `navigator.language`, then falls back to the first available caption or subtitle track. For an authored track that should show on load, add `default`. See [Show captions and subtitles](https://videojs.org/docs/framework/react/guides/captions).

## Three pieces instead of one

Use these three pieces when deciding where a v8 option belongs:

**The player** provides state to descendants and renders no DOM element. Its [features](https://videojs.org/docs/framework/react/guides/features) determine the available state and actions.

**The media** plays the content and replaces the v8 tech. Choose a [media component](https://videojs.org/docs/framework/react/guides/media-sources) for your format or provider. Player controls use the capabilities that media exposes.

**The skin** supplies the controls, poster, menus, shortcuts, and gestures. Use a packaged [skin](https://videojs.org/docs/framework/react/guides/skins) as it is, or restyle it. To change its layout or interactions, install its source.

## Where your options went

Move each option to the part of your v10 setup that owns it:

1. **Media settings.** Set native attributes or props on the media.
2. **Player metadata.** The title and poster belong to player state, which lets the skin or your custom UI render them.
3. **Your CSS.** Set sizing, aspect ratio, and responsive behavior in your own CSS.
4. **Composition.** Choose components to determine which controls appear, which shortcuts run, and which language the player uses.

### Media attributes

Move native media settings onto the media component.

The React prop names in this table apply to video-backed media such as `Video` and `HlsJsVideo`. The YouTube and Vimeo components use `autoplay` instead of `autoPlay`. Their refs point to iframes. Call their media methods through `mediaRef`, which receives the playback adapter, or through `useMedia()` inside the player.

| Video.js 8 | Video.js v10 |
| --- | --- |
| `autoplay` (boolean), `playsinline`, `crossorigin` | `autoPlay`, `playsInline`, `crossOrigin` on video-backed media |
| `muted`, `loop`, `preload` | the same props on your media |
| `sources: [{ src, type }]` | `src`, or `<source>` children for progressive fallback |
| `disablePictureInPicture` | `disablePictureInPicture` on your media |

Video.js uses native autoplay. For v8’s string-valued `autoplay` options:

- `'muted'`: set both `autoplay` and `muted` on the media (`autoPlay` and `muted` on video-backed React media).
- `'play'`: to preserve v8’s explicit playback request, call `play()` on the media when it fires `loadstart` and handle rejection.
- `'any'`: on `loadstart`, call `play()` on the media. If the returned promise rejects, mute the media and call `play()` again. Implement this fallback in your app.

Keep a manual play control available if autoplay fails. See [Handle autoplay](https://videojs.org/docs/framework/react/guides/autoplay).

### Player metadata

| Video.js 8 | Video.js v10 |
| --- | --- |
| `poster` | `poster` on `VideoPlayer` |
| `posterImage: false` | set `poster=""` on the player, or remove the poster component from your local skin |
| the title in `TitleBar` | `title` on `VideoPlayer`, rendered with the Title component |

If you do not set `poster` on the player, the skin uses a poster supplied by the media, such as a generated Mux poster. Set `poster=""` to turn off this fallback.

Set a poster URL on the player for the skin to display:

```jsx
<VideoPlayer poster="/poster.jpg">
  <VideoSkin>
    <Video src="/video.mp4" />
  </VideoSkin>
</VideoPlayer>
```

The packaged video and live-video skins already include the [Title](https://videojs.org/docs/framework/react/reference/components/title) component, so setting `title` on the player displays it. Audio skins do not include a title. In a custom layout or installed skin source, add `Title` where you want the title to appear. For poster options such as placeholders and custom image elements, see [Add a poster and loading placeholder](https://videojs.org/docs/framework/react/guides/poster) and the [Poster](https://videojs.org/docs/framework/react/reference/components/poster) reference.

### Your CSS

Set sizing and aspect ratio on the skin with CSS:

| Video.js 8 | Video.js v10 |
| --- | --- |
| `fluid: true` | `width: 100%` on the skin |
| `responsive: true` | the skins already adapt their layout to their own width |
| `aspectRatio: '16:9'` | `aspect-ratio: 16 / 9` |
| `width`, `height` | `width`, `height` |
| `fill: true` | `width: 100%; height: 100%` |
| `breakpoints` | the skins use container queries internally; use your own container queries for the rest of your layout |

### Composition

These options need a migration decision. Each row links to the relevant guidance or identifies a gap.

| Video.js 8 | Where it lives now |
| --- | --- |
| `techOrder`, `html5.vhs.*` | [Techs become media components](#techs-become-media-components) |
| `children`, `controlBar: { … }` | [Customize your player](#customize-your-player) |
| `userActions.hotkeys`, `userActions.click`, `userActions.doubleClick` | [Customize your player](#customize-your-player) |
| `plugins`, `videojs.registerPlugin` | [Plugins](#plugins) |
| `languages`, `language`, `videojs.addLanguage` | [Languages](#languages) |
| `liveui`, `liveTracker` | [Live and audio-only](#live-and-audio-only) |
| `audioOnlyMode`, `audioPosterMode` | [Live and audio-only](#live-and-audio-only) |
| `playbackRates` | `defaultPlaybackRates` on the player, or `rates` on a single control. See the [playback rate feature](https://videojs.org/docs/framework/react/reference/api/feature-playback-rate) |
| `textTrackSettings` | no equivalent; see [Known gaps](#known-gaps) |
| `spatialNavigation` | no equivalent; see [Known gaps](#known-gaps) |
| `inactivityTimeout` | delay not configurable yet ([#1728](https://github.com/videojs/v10/issues/1728)); `inactivityTimeout: 0` maps to `visibility="always"` on the controls component |
| `errorDisplay`, `notSupportedMessage` | the skins include an error dialog |
| `ModalDialog` | compose a [dialog](https://videojs.org/docs/framework/react/reference/components/dialog); when the dialog opens or closes, your application handles any playback changes |

## Techs become media components

Choose a media component for each format or provider your v8 techs handled. Check its supported features before replacing a streaming engine.

| What you’re playing | Video.js 8 | Video.js v10 |
| --- | --- | --- |
| MP4, WebM | `techOrder: ['html5']` | a plain `<video>` |
| HLS | VHS | [hls.js video](https://videojs.org/docs/framework/react/reference/components/hlsjs-video) |
| HLS with fMP4/CMAF segments | VHS | [SPF HLS video](https://videojs.org/docs/framework/react/reference/components/hls-video), after checking its limitations |
| HLS, native only | native HLS without VHS fallback | [native HLS video](https://videojs.org/docs/framework/react/reference/components/native-hls-video) |
| DASH without DRM | VHS | [DASH video](https://videojs.org/docs/framework/react/reference/components/dash-video) |
| DASH with DRM | VHS and `videojs-contrib-eme` | [Shaka video](https://videojs.org/docs/framework/react/reference/components/shaka-video); see [DRM](#drm) |
| YouTube, Vimeo | a tech plugin | the YouTube and Vimeo components |
| Mux | a tech plugin | [Mux Video](https://videojs.org/docs/framework/react/reference/components/mux-video) |

`html5.vhs.overrideNative: false` lets v8 use native HLS where available while retaining VHS elsewhere. It does not mean native-only playback. Choose an HLS engine that supports your required browsers; native HLS has no fallback on browsers that cannot play the stream themselves. See [Browser support](https://videojs.org/docs/framework/react/guides/browser-support).

For an existing VHS integration, start with hls.js video and test your streams on supported browsers. This is also the component selected by the installation CLI’s `--media hls` option.

The SPF HLS component is an alternative for fMP4/CMAF streams. It does not support MPEG-TS segments, raw ADTS AAC, or whole-segment AES-128 encryption. It supports DRM through `source.drm`. Verify your license configuration and browser support with the engine you choose. See [HLS video](https://videojs.org/docs/framework/react/reference/components/hls-video) and [hls.js video](https://videojs.org/docs/framework/react/reference/components/hlsjs-video).

Each media component needs its own import. For package-manager installations, install the matching adapter package:

| Media | Package |
| --- | --- |
| hls.js video | `@videojs/hlsjs-video` |
| DASH | `@videojs/dash-video` |
| Mux video / audio | `@videojs/mux-video` / `@videojs/mux-audio` |
| YouTube | `@videojs/youtube-video` |
| Vimeo | `@videojs/vimeo-video` |
| Shaka | `@videojs/shaka-video` |
| Wistia | `@videojs/wistia-video` |

SPF and native HLS are included as dependencies of the HTML and React packages.

For hls.js video, install the adapter, import `HlsJsVideo`, and use it in place of `Video`:

```bash
npm install @videojs/react @videojs/hlsjs-video
```

```tsx
import '@videojs/react/video/skin.css';
import { HlsJsVideo } from '@videojs/react/media/hlsjs-video';
import { VideoPlayer, VideoSkin } from '@videojs/react/video';

<VideoPlayer>
  <VideoSkin>
    <HlsJsVideo src="/stream.m3u8" playsInline />
  </VideoSkin>
</VideoPlayer>
```

Your VHS tuning options don’t have direct equivalents. Settings such as rendition capping and bandwidth hints are engine-specific. Configure them through the engine you chose. Video.js has no shared options object for these settings.

The exception is `html5.vhs.withCredentials`. Cookie-gated streams on another origin (CloudFront signed cookies and the like) need the standard `crossorigin="use-credentials"` on the media element, which both HLS components honor for every manifest and segment request, the same way the browser does under native playback:

```tsx
<HlsVideo src="https://cdn.example.com/stream.m3u8" crossOrigin="use-credentials" />
```

As with a plain `<video>`, the CDN has to answer with `Access-Control-Allow-Credentials: true` and a specific `Access-Control-Allow-Origin`, not `*`.

## Customize your player

In v8, you customized the player with options, `addChild`, component subclasses, or CSS overrides on `.vjs-*` selectors. In v10, choose a skin, restyle it with CSS custom properties, or edit its source. Try these approaches in order.

### Level 1: pick a skin

The Default skin groups settings in a menu. The Neutral skin has a compact layout like v8’s control bar. Both bring controls, tooltips, captions, keyboard shortcuts, touch gestures, and a settings menu that appears when there’s something to put in it. See [Skins](https://videojs.org/docs/framework/react/guides/skins).

Both include AirPlay and Cast buttons. Follow [Cast to AirPlay and Chromecast](https://videojs.org/docs/framework/react/guides/casting) to add the Google Cast extension.

### Level 2: restyle it

Replace your v8 selectors with the skin’s documented custom properties where they cover the change:

```css
/* Video.js 8 */
.video-js .vjs-play-progress {
  background-color: rebeccapurple;
}
```

```css
/* The className on VideoSkin in the first example */
.app-video-player {
  --media-accent-color: rebeccapurple;
}
```

`--media-accent-color` reaches the sliders, the active buttons, and the accent surfaces at once. Video.js picks a readable text color for content on the accent color. To choose that text color yourself, set `--media-accent-text-color`. `--media-border-radius` rounds the player’s corners. `--media-scale-unit` scales the whole control bar, like v8’s `font-size` technique for sizing controls. [Customize skins](https://videojs.org/docs/framework/react/guides/customize-skins#style-a-packaged-skin) has the full list.

### Level 3: edit skin source

To migrate `controlBar`, `addChild`, or custom component layouts, add the closest skin’s source to your project. The installed TypeScript and styles need a build step. A CDN-only page must add a build step before it can use this source. Follow [Customize skins](https://videojs.org/docs/framework/react/guides/customize-skins#style-skin-source) for installation and file locations.

Keep the package imports for `VideoPlayer` and the media. Replace the packaged `VideoSkin` import with the installed skin component.

To remove the picture-in-picture button, remove `PiPButton` and its tooltip wrapper from the local controls layout. Keep the other controls’ contents, classes, and styles.

Move `userActions.hotkeys` customizations into the local hotkey declarations. Move click and double-click customizations into the gesture declarations. The installed skin includes both; edit those files to preserve the interactions you need.

For a control bar built from scratch, follow [UI components](https://videojs.org/docs/framework/react/guides/ui-components). Individual controls supply behavior and accessible names. You supply their visible contents, layout, and CSS.

## Plugins

v10 has no `videojs.registerPlugin`, `player.myPlugin()`, or plugin lifecycle. Audit each plugin and plan its replacement:

- **Formats and techs** (`videojs-contrib-*`, YouTube, Vimeo, Mux). Replace them with the matching [media component](#techs-become-media-components).
- **DRM** (`videojs-contrib-eme`, `keySystems`). Configure the media source’s license servers; see [DRM](#drm). Plugin callbacks and custom license requests require engine-specific migration.
- **UI additions** (extra buttons, overlays, custom control bars). Rebuild them in local skin source or with [your own component](https://videojs.org/docs/framework/react/guides/build-your-own-component).
- **Workarounds** for v8 limitations. Check whether the limitation still exists before porting the workaround.
- **Missing features** such as ads and playlists. Check [Known gaps](#known-gaps) before scheduling the migration. An ads-dependent player has no built-in replacement today.

### DRM

For protected DASH, use Shaka video. The dash.js component has no `source.drm` input. For protected HLS, choose an engine that supports your key systems and browsers; see [DRM protected sources](https://videojs.org/docs/framework/react/guides/media-sources#drm-protected-sources).

Move license URLs from v8’s `keySystems` configuration to `source.drm`, keyed by EME key system ID. FairPlay also needs `serverCertificateUrl` unless its CDM is pre-provisioned. Custom `getLicense` callbacks and license authentication do not transfer automatically. Reimplement them with your chosen engine’s APIs, then verify playback before you switch.

The examples configure Widevine. Replace both URL placeholders and add every key system your supported browsers need.

Install `@videojs/shaka-video` and replace the media inside your player and skin:

```tsx
import { ShakaVideo } from '@videojs/react/media/shaka-video';

<ShakaVideo
  source={{
    src: 'YOUR_DASH_MANIFEST_URL',
    drm: {
      'com.widevine.alpha': { licenseUrl: 'YOUR_WIDEVINE_LICENSE_URL' },
    },
  }}
/>
```

## Read and control the player

### Events

Your media component is a real media element, so every event you already listen for still fires on it. Keep your listeners, and attach them to the media component instead of the v8 player.

```js
// Video.js 8
const player = videojs('my-video');
player.on('timeupdate', () => console.log(player.currentTime()));

// Video.js v10
const video = document.querySelector('video');
video.addEventListener('timeupdate', () => console.log(video.currentTime));
```

Map v8’s player-specific events separately:

| Video.js 8 event | Video.js v10 |
| --- | --- |
| `useractive`, `userinactive` | Read `userActive` from player state; use `controlsVisible` for whether controls are shown. |
| `texttrackchange` | Read `textTrackList` from player state. |
| `playerresize` | Observe your skin or container with `ResizeObserver`. There is no player size state. |

### Player state

Put standard media event props such as `onPlay`, `onTimeUpdate`, `onEnded`, and `onError` on `Video` or your chosen media component. Read player state through the preset’s [`usePlayer`](https://videojs.org/docs/framework/react/reference/api/use-player) hook, typed to that preset’s features:

```tsx
import { usePlayer } from '@videojs/react/video';

function Elapsed() {
  const currentTime = usePlayer((state) => state.currentTime);
  return <span>{currentTime}</span>;
}
```

Every feature has a selector (`selectPlayback`, `selectTime`, `selectVolume`, `selectQuality`, `selectLive`, `selectTextTrack`, and so on) to read all of a feature’s state instead of a single value.

### Drive playback

Replace v8 accessor methods with [player state](https://videojs.org/docs/framework/react/reference/api/player-store) for reads. Use store actions or media properties for writes. Video.js updates player state from media events, so native calls such as `media.play()` and assignments such as `media.currentTime = 10` update the controls.

| Video.js 8 | Video.js v10 |
| --- | --- |
| `player.play()`, `player.pause()` | the player’s `play` and `pause` actions, or `media.play()` and `media.pause()` |
| `player.currentTime()` / `player.currentTime(10)` | `currentTime` in player state, the player’s `seek(10)`, or `media.currentTime` |
| `player.duration()` | `duration` in player state, or `media.duration` |
| `player.volume()` / `player.volume(0.5)` | `volume` in player state / `media.volume = 0.5` |
| `player.muted()` / `player.muted(true)` | `muted` in player state / the player’s `setMuted(true)` |
| `player.playbackRate()` / `player.playbackRate(1.5)` | `playbackRate` in player state / the player’s `setPlaybackRate(1.5)` |
| `player.src({ src, type })` | set `src` on the media or replace the media component (`Video`, `HlsJsVideo`, `DashVideo`, etc) |
| `player.requestFullscreen()`, `exitFullscreen()` | the player’s `requestFullscreen`, `exitFullscreen` |
| `player.textTracks()`, `addRemoteTextTrack()` | `<track>` elements; read `textTrackList` from player state or `textTracks` from the media |
| `player.audioTracks()` | `audioTrackList` in player state, `audioTracks` in media |
| `player.error()` | `error` in player state |
| `player.dispose()` | unmount the component |
| `player.tech()` | the media object’s `engine` property, where one exists; get the media object with `useMedia()` |
| `videojs.getPlayer(id)` | call `usePlayer` from a component inside the player |

For video-backed media, a `ref` points to the rendered `HTMLVideoElement`. YouTube and Vimeo refs point to an `HTMLIFrameElement`. To call media methods on those embeds, pass a `mediaRef`, which receives the playback adapter, or call `useMedia()` from a component inside the player.

`useMedia()` returns the Video.js media object. If that object exposes an `engine` property, use it to access the playback engine.

Select player actions with `usePlayer`, just as you select state. For example, select `play`, `setPlaybackRate`, or `requestFullscreen`, then call the returned function.

`setVolume(value)` also unmutes when `value` is above zero. Use `media.volume = value` to preserve the current mute state. If the volume is `0`, `setMuted(false)` also sets it to `0.25`. To unmute and keep a zero volume, set `media.muted` directly.

To change sources, set `src` on the media component. If the new source needs a different playback engine, replace the media component. The UI follows the attached media.

## Languages

Video.js defaults to English and ships locale packs that load on demand. Select the locale and move `videojs.addLanguage` overrides into the i18n registry or provider. See [Internationalize the player](https://videojs.org/docs/framework/react/guides/internationalization).

To migrate `language: 'ja'`, wrap your player in [`I18nProvider`](https://videojs.org/docs/framework/react/reference/api/i18n-provider) with `locale="ja"`. To follow `<html lang>`, omit `locale`. To use a `lang` attribute on an element closer to the player, pass that element’s ref as `langRootRef`. To override individual strings, pass `translations`:

```tsx
import '@videojs/react/video/skin.css';
import { I18nProvider } from '@videojs/react/i18n';
import { Video, VideoPlayer, VideoSkin } from '@videojs/react/video';

<I18nProvider locale="en" translations={{ buttons: { play: 'Start video' } }}>
  <VideoPlayer>
    <VideoSkin>
      <Video src="/video.mp4" playsInline />
    </VideoSkin>
  </VideoPlayer>
</I18nProvider>
```

See [Internationalize the player](https://videojs.org/docs/framework/react/guides/internationalization) for scoped overrides, custom locales, and runtime switching.

## Live and audio-only

Replace `liveui` or `audioOnlyMode` with the matching live or audio [preset](https://videojs.org/docs/framework/react/guides/presets). Check its feature list when your app needs controls beyond those shown by the preset.

```tsx
import '@videojs/react/live-video/skin.css';
import { HlsJsVideo } from '@videojs/react/media/hlsjs-video';
import { LiveVideoPlayer, LiveVideoSkin } from '@videojs/react/live-video';

<LiveVideoPlayer>
  <LiveVideoSkin>
    <HlsJsVideo src="/live.m3u8" playsInline />
  </LiveVideoSkin>
</LiveVideoPlayer>
```

For audio, use the audio or live audio preset. For muted video without controls, use the background video preset.

You get `targetLiveWindow` and `liveEdgeStart` in state, plus a live button that jumps to the live edge. The live preset does not include `streamType`; add the stream type feature to a custom player when you need it. v8’s `liveTracker` tuning has no equivalent ([#1730](https://github.com/videojs/v10/issues/1730)).

The live skins have no time slider. To preserve DVR scrubbing, add one to custom UI or installed skin source; follow [the DVR setup](https://videojs.org/docs/framework/react/guides/live-streams#dvr-let-users-scrub-back).

The live composition is deliberately narrower than the video one. It leaves out playback rate, quality, and audio-track state, so those controls don’t appear in a live skin’s settings menu. If you need an omitted feature on a live player, build your own player from a feature list rather than taking the preset’s.

Use [`createPlayer`](https://videojs.org/docs/framework/react/reference/api/create-player) to build a player with the features you need. Pass it a feature list, and it returns a `Player` component and a `usePlayer` hook. Every preset uses this same pair.

## Replace v8 utilities

v8 put a handful of utilities on the `videojs` global for anyone building a custom component or plugin: `videojs.time.formatTime`, `videojs.dom`, `videojs.fn.throttle`, and a few others. v10 has no global and no public replacements, so use a platform API, a short helper of your own, or a utility library you already depend on.

| Video.js 8 | Video.js v10 |
| --- | --- |
| `videojs.time.formatTime(seconds, guide)` | The [Time](https://videojs.org/docs/framework/react/reference/components/time) component for an on-screen time display. For a string of your own, a few lines of arithmetic (below), or `Intl.DurationFormat` in browsers that support it |
| `videojs.fn.throttle(fn, wait)` | Your own helper, or `throttle` from a utility library such as lodash |
| `videojs.dom.isEl(value)` and its type-specific cousins | `instanceof` checks such as `value instanceof Element`, `value instanceof HTMLMediaElement`, or `value instanceof HTMLVideoElement` |
| `videojs.obj.merge(a, b)` | Object spread (`{ ...a, ...b }`) for a shallow merge, or `merge({}, a, b)` from a utility library such as lodash for a deep one. Pass the empty object first, because lodash’s `merge` mutates its first argument |

For example, a clock-style string such as `1:05` or `1:02:03`:

```js
function formatTime(seconds) {
  if (!Number.isFinite(seconds)) return '0:00';

  const total = Math.floor(Math.abs(seconds));
  const h = Math.floor(total / 3600);
  const m = Math.floor(total / 60) % 60;
  const s = String(total % 60).padStart(2, '0');
  const time = h > 0 ? `${h}:${String(m).padStart(2, '0')}:${s}` : `${m}:${s}`;

  return seconds < 0 ? `-${time}` : time;
}
```

## Known gaps

Check these limitations against your required features:

- **No ads support.** v8’s IMA and ad-plugin ecosystem has no v10 equivalent. If your player depends on ads, resolve that requirement before replacing it.
- **No playlist support.** No `videojs-playlist` equivalent.
- **No plugin system**, by design. Budget for rebuilding UI plugins as components. See [Plugins](#plugins).
- No text-track settings dialog equivalent to v8’s `textTrackSettings`. You can still style browser-rendered cues with `::cue`; see [Show captions and subtitles](https://videojs.org/docs/framework/react/guides/captions).
- No spatial navigation. v8’s `spatialNavigation` for TV and D-pad remotes has no equivalent.
- Player preferences such as volume, captions language, speed, and quality are not persisted automatically ([#944](https://github.com/videojs/v10/issues/944)). For application-managed persistence, follow [Remember user preferences](https://videojs.org/docs/framework/react/guides/user-preferences).
- No VHS-equivalent tuning surface. Engine settings belong to the engine you chose, and the SPF HLS component deliberately exposes few of them.
- Chapters render in the time slider from a default `<track kind="chapters">`, and its segments reflect `data-active`. There is no player-level active chapter value or chapter menu, so v8’s chapters menu has no equivalent ([#1873](https://github.com/videojs/v10/issues/1873)). Cue points aren’t implemented ([#1442](https://github.com/videojs/v10/issues/1442)).
- The controls auto-hide delay isn’t configurable, so arbitrary `inactivityTimeout` values have no equivalent ([#1728](https://github.com/videojs/v10/issues/1728)). For `inactivityTimeout: 0`, set `visibility="always"` on the controls component in a custom layout or installed skin source.
- No full-window fullscreen fallback. Test fullscreen on your supported browsers; see [Browser support](https://videojs.org/docs/framework/react/guides/browser-support).
- Multiple `<source>` elements with `size` metadata don’t become a quality menu. Use HLS or DASH for adaptive quality.
- The Default, Neutral, Compat, and Scaffold skins are available. Runtime theme switching is not supported.
- Native controls are not automatically removed when custom controls load ([#1160](https://github.com/videojs/v10/issues/1160)).
- Debug mode has no equivalent yet ([#1406](https://github.com/videojs/v10/issues/1406)).

## See also

- [Features](https://videojs.org/docs/framework/react/guides/features) and [Presets](https://videojs.org/docs/framework/react/guides/presets)
- [Media sources](https://videojs.org/docs/framework/react/guides/media-sources)
- [Skins](https://videojs.org/docs/framework/react/guides/skins) and [Customize skins](https://videojs.org/docs/framework/react/guides/customize-skins)

---

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