# Video Player An on-demand video player built on Video.js 10, with the skin themed by the shadcn/ui tokens, a composable media element and declarative text tracks. ## Installation ```bash npx shadcn@latest add litingyes/blocove/video-player ``` The shell is the Video.js video preset and its skin; the media element is a separate component, so the shell never needs to change when the source does. The skin only exposes its published settings, and Blocove sets them from your shadcn/ui tokens: radius, hairline, font and scale follow theme changes, while the accent keeps the contrasting default unless you pass `accentColor`. ## API Reference ### VideoPlayer The on-demand video preset and its skin, themed with the shadcn/ui tokens. Compose the media inside it. The player element renders nothing itself, so the classic shadcn attributes (`className`, `style`, `children`) belong to this component. | 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` | - | | `className` | `string` | - | | `style` | `CSSProperties` | - | | `children` | `ReactNode` | `Required` | ### VideoMedia The native `