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

Most upvoted comments

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