Optional
audioOptional
autoIf autoScroll is enabled, keep the cursor in the center of the waveform during playback
Optional
autoAutomatically scroll the container to keep the current position in viewport
Optional
autoplay?: booleanPlay the audio on load
Optional
barVertical bar alignment
Optional
barSpacing between bars in pixels
Optional
barA vertical scaling factor for the waveform
Optional
barRounded borders for bars
Optional
barRender the waveform with bars like this: ▁ ▂ ▇ ▃ ▅ ▂
HTML element or CSS selector
Optional
cursorThe color of the playpack cursor
Optional
cursorThe cursor width
Optional
duration?: numberPre-computed duration
Optional
fetchOptions to pass to the fetch method
Optional
fillStretch the waveform to fill the container, true by default
Optional
height?: number | "auto"The height of the waveform in pixels, or "auto" to fill the container height
Optional
hideHide the scrollbar
Optional
interact?: booleanPass false to disable clicks on the waveform
Optional
media?: HTMLMediaElementUse an existing media element instead of creating one
Optional
minMinimum pixels per second of audio (i.e. zoom level)
Optional
normalize?: booleanStretch the waveform to the full height
Optional
peaks?: (Float32Array | number[])[]Pre-computed audio data
Optional
plugins?: GenericPlugin[]The list of plugins to initialize on start
Optional
progressThe color of the progress mask
Optional
renderCustom render function
Optional
sampleDecoding sample rate. Doesn't affect the playback. Defaults to 8000
Optional
splitRender each audio channel as a separate waveform
Optional
url?: stringAudio URL
Optional
waveThe color of the waveform
Generated using TypeDoc
Audio rate