Use it where the player is the page: pass precomputed peaks, the duration and a label, optionally an image and an audio src. Without a src it plays a quiet placeholder pad on its own clock.
When not to use
Not for a background player in an app, track lists or dense screens, and it does not analyse live audio. For plain playback use a native audio element.
Use it on the release page of a single or a podcast episode, where the player is the page: the seek bar is the picture. Effects are visual
pieces rather than controls: they do not replace the Interface components in dashboards and forms.
The effect needs your image through its image prop (see the table below). Use a JPEG or WebP of at
least 1600 px on the long side, under 200 KB (400 KB at full screen); host it on your own origin or
send CORS headers, because the browser blocks cross-origin textures. The demo images stay on this
site and are not installed.
The waveform is a real slider: arrows move 5 s, Page Up and Down 30 s, Home and End jump, Space plays. The canvas itself is hidden from assistive technology.
The effect never takes focus. On touch screens a horizontal drag scrubs and a tap seeks where it lands; a vertical drag stays with the page, and the transport buttons are 44 px.
A still at 40 % played with the swell at the centre and no pan; it still redraws when you seek or play. The Envelope hooks read usePrefersReducedMotion, so the MotionKitProvider setting applies too.