How to use audio Url in wavesurfer #3152
-
When I use the audio URL(https://samplelib.com/lib/preview/mp3/sample-3s.mp3), I will get a CORS error. So I converted url audio to buffer and used this code to use and it works but in V7 I don't know how to do that because some methods are removed. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
katspaugh
Aug 30, 2023
Replies: 1 comment 6 replies
-
You can load a blob like this: https://wavesurfer-js.org/docs/classes/wavesurfer.default#loadBlob |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wavesurfer.loadBlob(new Blob([buffer]))