Video player: Seek offsets and speeds
offset sets how far each seek button jumps, and rates sets the speeds in the menu.
This adds the example as components/examples/video-player/seek-offsets.tsx, together with the Video player component and the HextaUI theme tokens it needs.
pnpm dlx shadcn@latest add https://hextaui.com/r/video-player-seek-offsets.jsonTo add only the component, follow the Video player installation.
Props in this example
The Video player props this example sets, from the API reference.
| Prop | Type | Default |
|---|---|---|
offsetSeconds to jump. Negative values go back. | number | 10 |
| Prop | Type | Default |
|---|---|---|
rates | number[] | [0.5, 0.75, 1, 1.25, 1.5, 2] |
Every prop is in the Video player API reference.
See them all, with keyboard support and accessibility notes, on the Video player page.
- ButtonButtons in every variant and size, with a built-in loading, success and error flow that skips the spinner for fast requests.
- Dropdown menuA menu of actions and options behind a button, with groups, submenus, checkbox and radio items, and shortcuts.
- KbdKey caps for shortcuts that show the right symbols on every platform, read them out properly and press down with the real keys.
- MotionThe easing curves, durations and reduced-motion check every component animates with, plus hooks for size morphs and sliding highlights.
- SpinnerA loading indicator with Apple-style ticks or a breathing ring that can wait before showing and stay long enough not to flicker.
- TooltipA short hint on hover or keyboard focus that opens after a brief rest, switches instantly between neighbours and shows shortcuts.