Live Player

Live video and audio players built on the Video.js live presets: the live button, the DVR window and the same skin settings as the on-demand items.

UIlive-playerView JSON

The live preset swaps the timeline for a live button that seeks back to the edge, and the DVR window the manifest declares decides how far back it can reach. It is still a shell: compose an adaptive media element inside it, and pin `streamType="live"` when you want the live layout from the first frame instead of waiting for the engine to parse the playlist. The audio preset follows the inherited `color-scheme`; pass `locale` to translate the labels through the Video.js i18n provider. The committed demo fixture is a short static stream that never grows, so the demo plays its window and then holds at the live edge.

Preview

Live from the edge

Installation

Add the item with the shadcn CLI, or copy the source manually.

pnpm dlx shadcn@latest add litingyes/blocove/live-player

Requires a shadcn/ui project set up with Base UI primitives. Blocove is developed against the b0 preset, but it installs no base config or theme tokens: your own preset, fonts and colors stay in place.

Or install from the namespace after adding the registry: npx shadcn@latest add @blocove/live-player

This example also uses: hls-media

pnpm dlx shadcn@latest add litingyes/blocove/hls-media

API Reference

Props accepted by the exported components.

LiveVideoPlayer

The Video.js live video preset and its skin, themed with the shadcn/ui tokens. The live button, the DVR window and the seek-back-to-edge behaviour come from the preset; the media element stays a separate item.

PropTypeDefault
titlestring | null-
posterstring | null-
aspectRatio'video' | 'classic' | 'square' | 'portrait' | 'wide' | 'auto''video'
accentColorstringSkin default
objectFit'contain' | 'cover' | 'fill' | 'none' | 'scale-down'Skin default
objectPositionstringSkin default
renderPoster(props) => ReactNode-
localestring-
classNamestring-
styleCSSProperties-
childrenReactNodeRequired

LiveAudioPlayer

The Video.js live audio preset and its skin, for streams, radio and live episodes. It reports the title and the cover art, adapts to the page color scheme and accepts the same theme props as the on-demand audio shell.

PropTypeDefault
titlestring | null-
posterstring | null-
accentColorstringSkin default
localestring-
classNamestring-
styleCSSProperties-
childrenReactNodeRequired