Video Player
A compact video result with controllable playback, seek position, and metadata.
Loading component preview…
Installation
Add the component source directly to your project.
pnpm dlx shadcn@latest add https://pastaui.com/r/video-player.jsonAPI reference
Video Player
| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Labels the generated or retrieved video. |
duration | number | — | Sets the duration in seconds. |
currentTime | number | — | Controls the playhead position. |
playing | boolean | false | Controls the playback state. |
poster | ReactNode | — | Renders a custom poster surface. |