# 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. ## Installation ```bash npx shadcn@latest add litingyes/blocove/live-player ``` This example also uses: `hls-media`. ```bash npx shadcn@latest add litingyes/blocove/hls-media ``` 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. ## API Reference ### 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` | ## Registry dependencies - `litingyes/blocove/media-theme` Namespace: `npx shadcn@latest add @blocove/live-player`