Gives MediaPlayer the waveform it draws on its Scrubber.
f
usePeaks(source: PeaksSource | undefined): number[] | null
Returns the peaks of source once loaded, and null until then, without a
source, or when it can't be loaded: the scrubber then draws a plain bar.
Usage
import * as mod from "src/hooks/player/usePeaks.ts";