VideoControls
Custom, on-theme video controls (the native ones can't be themed cross-browser). Renders over the bottom of the video: scrub bar, play/pause, volume, time, and playback speed. No fullscreen -> native fullscreen would drop the overlay subtitles. Reads/writes the
Interfaces¶
VideoControlsProps¶
Defined in: src/shared/components/VideoControls.tsx:16
Properties¶
| Property | Type | Description | Defined in |
|---|---|---|---|
video |
| HTMLVideoElement | null |
- | src/shared/components/VideoControls.tsx:17 |
visible |
boolean |
Whether the bar is shown (parent handles auto-hide). | src/shared/components/VideoControls.tsx:19 |
Functions¶
VideoControls()¶
Defined in: src/shared/components/VideoControls.tsx:28
The VideoControls component.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
props |
VideoControlsProps |
The props. |
Returns¶
Element | null
The control bar, or null without a video.