Skip to content

ReferenceSkins

live-video-minimal-skin

The live video preset's visually lighter skin, closer to a classic control bar

The minimal skin of the live video preset: the same player and the same controls in a visually lighter design, closer to a classic control bar. Like the default skin, it shows a Live button in place of time controls. LiveVideoSkin is the same preset’s other variant. See Skins for how packaged skins work and Presets for what the live video preset ships.

Import

import '@videojs/html/live-video/minimal-skin';

The import registers the skin and every UI element it composes. The CDN player bundle registers this skin together with its player:

<script type="module" src="https://cdn.jsdelivr.net/npm/@videojs/cdn@10.0.0-rc.4/live-video-minimal.js"></script>

Usage

The skin goes between the player and the media element. It renders its controls around the media.

<live-video-player>
  <live-video-minimal-skin>
    <hls-video src="live.m3u8"></hls-video>
  </live-video-minimal-skin>
</live-video-player>

The examples use the lightweight HLS video element because most browsers can’t play HLS streams with a plain <video>. See Play live streams.

Poster

The skin renders a poster image before playback starts. An element with slot="poster" replaces it.

See Add a poster and loading placeholder for complete examples.

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. For deeper changes, the Video.js registry provides the skin files.

Own the UI

Packaged skins keep their controls and layout inside Video.js. When you need to add, remove, rearrange, or deeply restyle controls, use Shadcn to add the skin source to your project. Its components, layout, styles, and interactions become local files you can change.