Always start playing from 0 seconds, cannot play the specified position , when click wavesurfer
Wavesurfer.js version(s):
4.2.0
Browser and operating system version(s):
Chrome 86.0.4240.183 MacOS 10.15.7
Code needed to reproduce the issue:
the size of the audio files is 98m

Hi! Can you reproduce your problem with an example, maybe with codesandbox?
if the backend parameter not 'WebAudio' it does not work
@zhangzygit can you provide a link to the audio file in question for testing?
backend: 'WebAudio'
@thijstriemstra , have you eventually solved the issue? what the cause was?
I believe the problem is how HTMLMediaElement behaves while setting its internal currentTime when the server serving audio files is not configured properly. Changing currentTime creates a byte range request for the server asking for a part of the audio file - and if this fails, the player sets currentTime to 0 by default.
I struggled for a while with this in one project since I had to serve the files with my own implementation. IIRC when I correctly handled the byte range requests Wavesurfer also began to work.
See this StackOverflow answer for reference.
Edit: Just noticed that it was katspaugh themselves that wrote the original stack overflow answer. 😄
@samuliedvin , thanks for advice. solved that by applying Accept-Ranges header.