Skip to content
FrameworkStyle

MinimalLiveAudioSkin

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

The minimal skin of the live audio 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. LiveAudioSkin is the same preset’s other variant. See Skins for how packaged skins work and Presets for what the live audio preset ships.

Import

import { MinimalLiveAudioSkin } from '@videojs/react/live-audio';
import '@videojs/react/live-audio/minimal-skin.css';

Usage

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

<LiveAudioPlayer>
  <MinimalLiveAudioSkin>
    <MuxAudio src="live.m3u8" />
  </MinimalLiveAudioSkin>
</LiveAudioPlayer>

The examples use the Mux audio element: a plain <audio> can’t play HLS in most browsers, and this element reports the live playback state the skin’s Live button needs. See Play live streams.

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. When you need deeper changes, eject the skin.

Eject the skin

The @videojs/live-audio-minimal skin installs under components/videojs/skins/live-audio/minimal. The player and media remain package imports. Follow Customize skins to set up the CLI, install the skin, and use the copied files.