DOMException: BodyStreamBuffer was aborted at m.destroy #3739
Unanswered
gregorio-disco
asked this question in
Q&A
Replies: 1 comment
-
You should catch the promise from the // somewhere.jsx
...
if (player.current) {
player.current.destroy();
}
player.current = WaveSurfer.create({
container: histogramRef.current,
plugins: [Zoom],
...options, // don't pass a URL here
});
player.current.load(url).catch(() => {
// handle errors here
})
... Also consider using https://github.com/katspaugh/wavesurfer-react |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! 👋 I'm currently working on an audio tool that can navigate between multiple audios if the navigation process is done quickly, I get an unhandled error by the library.
Bug description
The library throws an unhandled exception if the
wavesurfer
instance is destroyed (with .destroy() method) while still loading or processing an audio.Environment
Minimal code snippet
Expected result
A handled exception
Obtained result
An unhandled exception
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions