LiveAudioSkin
Accessible live audio controls for playback, live-edge state, volume, and feedback
Use it for a live audio stream with explicit live-edge state.
Use the packaged preset
import { LiveAudioPlayer, LiveAudioSkin } from '@videojs/react/live-audio';
import { HlsAudio } from '@videojs/react/media/hls-audio';
import '@videojs/react/live-audio/skin.css';
export function Player() {
return (
<LiveAudioPlayer>
<LiveAudioSkin>
<HlsAudio src="https://example.com/live.m3u8" crossOrigin="anonymous" />
</LiveAudioSkin>
</LiveAudioPlayer>
);
}Install editable source
Install this Skin and its exact dependencies with Shadcn, or copy the same generated files manually. The Player and media remain package imports.
Add the @videojs namespace for the reacttailwind catalog, then install the editable source.
{
"registries": {
"@videojs": "https://shadcn.videojs.org/r/react/{name}.json"
}
}pnpm dlx shadcn@latest add @videojs/live-audioRequires `@videojs/react@10.0.0-beta.32`, which is installed with this item.
Copy the exact files below and install these packages: @videojs/core@10.0.0-beta.32 @videojs/react@10.0.0-beta.32 clsx react.
Also install the Shadcn dependencies utils.
Add the @videojs namespace for the reactcss catalog, then install the editable source.
{
"registries": {
"@videojs": "https://shadcn.videojs.org/r/react/css/{name}.json"
}
}pnpm dlx shadcn@latest add @videojs/live-audioRequires `@videojs/react@10.0.0-beta.32`, which is installed with this item.
Copy the exact files below and install these packages: @videojs/core@10.0.0-beta.32 @videojs/react@10.0.0-beta.32 clsx react.
Also install the Shadcn dependencies utils.
Customize the skin
Packaged skins support --media-accent-color, --media-accent-text-color,--media-border-radius, and --media-scale-unit. Add your own class name and style values to the skin root.
See Customize skins for the complete styling and ownership workflow.
Behavior and API
- The packaged export is
LiveAudioSkinin React and<live-audio-skin>in HTML. - The live preset replaces on-demand time controls with live-edge state.
- Default exposes the full primary and secondary control regions.
For player state and feature details, see Presets. For the UI building blocks, see UI components.