Closed mvynhb closed 9 months ago
New peaks can be rendered via the load method.
Thanks, I tried with load, but didn't work as expected..., the waveform did change, but the duration on the timeline didn't seem to change. Anyways since it works using surfer.destroy() and recreating it, will close issue
Duration is the third param. https://wavesurfer.xyz/docs/classes/wavesurfer.default#load
Bug description
As described on the docs, using the
wavesurfer.setOptions()
method it should re-render the waveform, however this does not work. Is there any way to re-render the waveform without having to destroy it when passing new peaks?Environment
Minimal code snippet
Expected result
It should re-render the waveform with the passed peaks.
Screenshots