Skip to content

ReferenceSkins

NeutralLiveAudioSkin

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

The neutral 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 { NeutralLiveAudioSkin } from '@videojs/react/live-audio';
import '@videojs/react/live-audio/neutral-skin.css';

Anatomy

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

<LiveAudioPlayer>
  <NeutralLiveAudioSkin>
    <MuxAudio />
  </NeutralLiveAudioSkin>
</LiveAudioPlayer>

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

Examples

Basic Usage

import { LiveAudioPlayer, NeutralLiveAudioSkin } from '@videojs/react/live-audio';
import { MuxAudio } from '@videojs/react/media/mux-audio';

import '@videojs/react/live-audio/neutral-skin.css';

export default function BasicUsage() {
  return (
    <LiveAudioPlayer>
      <NeutralLiveAudioSkin className="react-live-audio-neutral-skin-basic">
        <MuxAudio src="https://stream.mux.com/v69RSHhFelSm4701snP22dYz2jICy4E4FUyk02rW4gxRM.m3u8" crossOrigin="anonymous" />
      </NeutralLiveAudioSkin>
    </LiveAudioPlayer>
  );
}

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.