Creating wavesurfer instance with precomputed peaks results in RangeError: Invalid array length #4127
Replies: 7 comments
-
Does it work without passing pre-decoded peaks? |
Beta Was this translation helpful? Give feedback.
-
It doesn't work even without passing the pre-decoded peaks. |
Beta Was this translation helpful? Give feedback.
-
@katspaugh any updates? |
Beta Was this translation helpful? Give feedback.
-
Does it happen with a specific audio file? |
Beta Was this translation helpful? Give feedback.
-
No, I tried it with different audio files, and it doesn't work. |
Beta Was this translation helpful? Give feedback.
-
I'd need more specific steps to reproduce this.
Looks like you're serving audio from some sort of API. Make sure it returns a correct MIME type in the Content-Type header. |
Beta Was this translation helpful? Give feedback.
-
I tried now and it works. Thanks a million! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
I am trying to create a new Wavesurfer instanced using the unpkg script, however I get a range error.
Environment
Minimal code snippet
Expected result
It is expected to have a wavesurfer instance with the audio in the URL.
Obtained result
I get
Uncaught (in promise) RangeError: Invalid array length
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions