wavesurfer.js: Error raised when trying to seekTo on Firefox
Hello, When I try to click on any part of the waveform on firefox, this error is raised :
TypeError: Value being assigned to HTMLMediaElement.currentTime is not a finite floating-point value.
Looking at the sources, it seems that in this function :
this.drawer.on("click", function(e, progress) { setTimeout(function() { console.log(progress); my.seekTo(progress); }, 0); });
the value of progress is Infinity
At this point, I don’t know what to do to solve this, any ideas ?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (14 by maintainers)
Commits related to this issue
- workaround for seekTo occasionally crashing on Firefox (#1228) — committed to lorenzos/wavesurfer.js by lorenzos 2 years ago
- workaround for seekTo occasionally crashing on Firefox (#2431) * workaround for seekTo occasionally crashing on Firefox (#1228) * workaround for seekTo occasionally crashing: changelog — committed to katspaugh/wavesurfer.js by lorenzos 2 years ago
I’m still experiencing this issue when I remove my work-around. IMO the work-around is still better than crashing the whole script, would a PR be welcome? @katspaugh @thijstriemstra