Complete reference for all available props and configuration options for theWaveSurferPlayer
component.
This component is built on top of WaveSurfer.js. For detailed configuration options, advanced features, and complete API documentation, visit the official WaveSurfer.js documentation.
WaveSurfer.js Documentationoptions
plugins
events
height
Height of the waveform in pixels
Default: 128
waveColor
Color of the waveform bars
Default: '#999'
progressColor
Color of the progress overlay
Default: '#555'
barWidth
Width of each waveform bar
Default: 1
barGap
Gap between waveform bars
Default: 0
barRadius
Border radius of bars
Default: 0
const options = { // Visual Configuration height: 48, waveColor: '#4F4A85', progressColor: '#383351', barWidth: 3, barGap: 2, barRadius: 4, // Audio Configuration url: 'https://example.com/audio.mp3', autoplay: false, loop: false, volume: 0.8, // Interaction Configuration cursorColor: '#333', cursorWidth: 2, interact: true, responsive: true, fillParent: true, // Advanced Configuration pixelRatio: 1, backend: 'WebAudio', normalize: true, minPxPerSec: 50 } <WaveSurferPlayer :options="options" />
@ready
@play
@pause
@finish
@timeupdate
@click
@dblclick
@scroll
@zoom
@waveSurfer