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.
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

Installation
Add the item with the shadcn CLI, or copy the source manually.
pnpm dlx shadcn@latest add litingyes/blocove/live-playerRequires 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-mediaAPI 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.
| Prop | Type | Default |
|---|---|---|
title | string | null | - |
poster | string | null | - |
aspectRatio | 'video' | 'classic' | 'square' | 'portrait' | 'wide' | 'auto' | 'video' |
accentColor | string | Skin default |
objectFit | 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | Skin default |
objectPosition | string | Skin default |
renderPoster | (props) => ReactNode | - |
locale | string | - |
className | string | - |
style | CSSProperties | - |
children | ReactNode | Required |
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.
| Prop | Type | Default |
|---|---|---|
title | string | null | - |
poster | string | null | - |
accentColor | string | Skin default |
locale | string | - |
className | string | - |
style | CSSProperties | - |
children | ReactNode | Required |