New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player becomes unresponsive when seeking at the end of a FLAC file #3556
Comments
Thanks for the report! Could you try reproducing this bug with a custom media element instead of passing a URL? I.e. import WaveSurfer from 'wavesurfer.js'
const audio = new Audio('xxx.flac')
const wavesurfer = WaveSurfer.create({
container: document.body,
waveColor: 'rgb(200, 0, 200)',
progressColor: 'rgb(100, 0, 100)',
media: audio,
}) |
Thank you for your fast reply. Tried your proposal and unfortunately the issue persists: Minimal Code Snippet
Obtained ResultYou can note how |
Thanks! This rules out that the problem is blob URL-related. What if you insert the same FLAC file as a regular audio element w/o wavesurfer? Does it hang also? |
I can share the audio as it's from a public dataset (asvspoof): Audio File + Online Player
It does not hang and you can see it in the audio file link above, when using a regular audio player. To add to this, it not only happens to this specific audio, but all of my local flac files. |
Hello @katspaugh , Can we expect any updates on this matter :) Greetings |
You could try adding |
Bug description
Related: #3534
When performing a
seek
mouse operation at the end of a .flac file, WaveSurfer becomes unresponsive. The player do no longer resolves promises of .play and .pause, and fails to trigger events such astimeupdate
.This issue is being raised separately as !3534 does not specifically address unresponsiveness beyond console errors.
Environment
Minimal code snippet
Note: need clicking at the 97+ percentile.
Expected result
ontimeupdate
.Obtained result
The text was updated successfully, but these errors were encountered: