A waveform-based audio player component using WaveSurfer.js. Displays a play/pause button and renders a waveform visualization of the provided audio URL.

  • 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.
<AudioMain audio_url="https://example.com/audio.mp3" playing={true} handlePlaying={setPlaying} />

audio_url (required), optional playing flag, and handlePlaying callback.

A styled audio waveform player with a play/pause button.

Functions

default

Modules

<internal>