TVMediaControls
A playback transport bar: title, scrubber with buffered + progress, and remote-focusable skip / play-pause controls.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A playback transport bar: title, scrubber with buffered + progress, and remote-focusable skip / play-pause controls.
Accessibility
Designed for the ten-foot / remote experience: large focus targets, a single bright focus highlight, D-pad navigation, and high-contrast type. Honours data-scale="cinema".
Install and import
npx shadcn@latest add @prism/tv-media-controls
import { TVMediaControls } from '@/components/prism/TVMediaControls';
In a no-build prototype, read it from the bundle instead: const { TVMediaControls } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
title | React.ReactNode | — | Now-playing title. |
sub | React.ReactNode | — | Subtitle (episode, channel, …). |
position | number | — | Current position in seconds. |
duration | number | — | Total duration in seconds. |
buffered | number | — | Buffered-to position in seconds. |
playing | boolean | — | Whether playback is active (toggles the play/pause glyph). |
onPlayPause | () => void | — | |
onSkipBack | () => void | — | |
onSkipForward | () => void | — | |
skip | number | — | Skip amount in seconds (for labels). Default 10. |
controls | React.ReactNode | — | Extra controls appended to the transport row. |
art | string | — | Backdrop URL when a control is focused. |