Protected abortPrivate decodedProtected mediaProtected mediaPrivate pluginsPrivate rendererPrivate stopProtected subscriptionsPrivate timerStatic Readonly BaseStatic Readonly domProtected emitEmit an event
Rest ...args: WaveSurferEvents[EventName]Export the waveform image as a data-URI or a blob.
The format of the exported image, can be image/png, image/jpeg, image/webp or any other format supported by the browser.
The quality of the exported image, for image/jpeg or image/webp. Must be between 0 and 1.
The type of the exported image, can be dataURL (default) or blob.
A promise that resolves with an array of data-URLs or blobs, one for each canvas element.
Get decoded peaks
Protected getPrivate initPrivate initPrivate initPrivate initPrivate loadSubscribe to an event. Returns an unsubscribe function.
Optional options: { Optional once?: booleanSubscribe to an event. Returns an unsubscribe function.
Protected onOptional options: boolean | AddEventListenerOptionsSubscribe to an event only once
Subscribe to an event only once
Set new wavesurfer options and re-render it
Protected setUnsubscribe from an event
Private unsubscribePrivate updateStatic createCreate a new WaveSurfer instance
Generated using TypeDoc
Create a new WaveSurfer instance