Passed to Scrubber by MediaPlayer and FilePreview. Times are in seconds.
current: number
duration: number
onSeek: (time: number) => void
Called once a click, a drag or a key lands somewhere.
optional
onScrub: (time: number | null) => void
Called with the time under the pointer while it holds the scrubber, and with null once it lets go, so MediaPlayer's clock can follow the drag.
optional
peaks: number[] | null
The waveform's heights from 0 to 1; without them, a plain bar.
optional
slim: boolean
Draws the thin bar of a video's controls instead of the audio track.