

Every state


default


focus


focus-scrubber


hover


captions-on


muted


scrubbed


not-loaded
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| src | string | "" | The video file or stream URL. Empty by default: no video ships, so the player shows its poster and says "Video not loaded" on play. |
| poster | string | "/components/video-player/video-player-controls-bar/studio.webp" | Poster image shown until the video plays. |
| title | string | "A tour of the booking dashboard" | Name of the video: the accessible name and the title over the poster. |
| duration | number | 222 | Length in seconds, used until the file reports its own. |
| captions | { start: number; end: number; text: string }[] | [3 cues] | Caption cues in seconds, drawn while Captions is on. |
| defaultCaptionsOn | boolean | false | Starts with captions on. |
| labels | { play; pause; mute; unmute; captions; fullscreen; exitFullscreen; seek; notLoaded } | English | Labels of the controls and the not-loaded message. |
| className | string | Extra classes on the outer element. |


