You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to load a not supported type of audio, like .ogg in Safari
The error event is triggered but the content of the message is undefined.
It seems also that the event throws the error message correctly later when tries to load a different file that is compatible
Environment
Browser: Any
Minimal code snippet
<scriptsrc="https://unpkg.com/wavesurfer.js@7"></script>wavesurfer.load('assets/audio/wrong_format.m4a');wavesurfer.on('error',(error)=>{console.log(error)// try to load a different file after the errorwavesurfer.load('assets/audio/sample.mp3');});
Easy to reproduce by running the following repo, changing the library version in the index.html and adding the error event handler snippet code above:
Bug description
Try to load a not supported type of audio, like .ogg in Safari
The error event is triggered but the content of the message is
undefined
.It seems also that the event throws the error message correctly later when tries to load a different file that is compatible
Environment
Minimal code snippet
Easy to reproduce by running the following repo, changing the library version in the
index.html
and adding the error event handler snippet code above:https://github.com/HassanCorrigan/soundcloud-player
Expected result
With the following previous version it works as expected:
Outoput: "Error decoding audiobuffer"
In the current version it should be the following message
EncodingError: Unable to decode audio data
Obtained result
undefined
NOTE: after that, if another compatible audio file is loaded then the message is displayed in the error handler event but it shouldn't
Screenshots
The text was updated successfully, but these errors were encountered: