property ScrubberProps.onScrub

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.

Type

(time: number | null) => void

Usage

import { type ScrubberProps } from "src/components/player/Scrubber.tsx";