A waveform-based audio player component using WaveSurfer.js.
Displays a play/pause button and renders a waveform visualization of the provided audio URL.
Remarks
Uses WaveSurfer.js for waveform rendering and audio control.
Automatically starts playback when playing is true and the waveform is ready.
Calls handlePlaying to communicate playback state changes.
Description
A waveform-based audio player component using WaveSurfer.js. Displays a play/pause button and renders a waveform visualization of the provided audio URL.
Remarks
playing
is true and the waveform is ready.handlePlaying
to communicate playback state changes.Example
Param: props
audio_url
(required), optionalplaying
flag, andhandlePlaying
callback.Returns
A styled audio waveform player with a play/pause button.