Skip to content
FrameworkStyle

BackgroundVideoSkin

The background preset's chrome-less skin for ambient video

The only skin of the background preset: a chrome-less surface that sizes ambient video with no visible controls. See Skins for how packaged skins work and Presets for what the background preset ships.

Import

import { BackgroundVideoSkin } from '@videojs/react/background';
import '@videojs/react/background/skin.css';

Usage

The skin goes between the player and the media element. It sizes the ambient video and renders no visible controls.

<BackgroundVideoPlayer>
  <BackgroundVideoSkin>
    <BackgroundVideo src="video.mp4" />
  </BackgroundVideoSkin>
</BackgroundVideoPlayer>

Styling

Packaged skins style themselves and expose a small set of public CSS custom properties. Everything else inside the skin is private and may change between releases. Customize skins documents the properties. The background video skin cannot be ejected.