Skip to content
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

3.14.0之后的版本,会导致wavesurfer.js无法使用 #527

Closed
lidaweicn opened this issue Apr 2, 2022 · 3 comments
Closed

3.14.0之后的版本,会导致wavesurfer.js无法使用 #527

lidaweicn opened this issue Apr 2, 2022 · 3 comments
Labels
Details wanted Need more details

Comments

@lidaweicn
Copy link

vConsole Version: 3.14.0 - 3.14.4

3.13.0 版本没问题,
3.14.0 之后的版本会导致wavesurfer.js无法使用,

通过调试发现,在wavesurfer load 音频文件时,fetchFile 函数返回错误导致的,
但是在调试时 fetch 请求已经返回正确的数据,但是在进入 v console 之后就出现一个报错信息
TypeError: Failed to fetch

3.14.0 的修改 Refactor(Network): Use proxy on fetch(). 是否跟这个有关 ?#518

@Maizify
Copy link
Collaborator

Maizify commented Apr 2, 2022

可能会有影响,因为3.14.0开始修改了fetch的代理逻辑。
但我使用wavesurfer官网的示例代码,没有复现你说的报错,fetch正常下载了文件。
有无可复现的代码片段或网页?

  var wavesurfer = WaveSurfer.create({
    container: '#waveform',
    waveColor: 'violet',
    progressColor: 'purple'
  });
  wavesurfer.load('./data/a.wav');

@Maizify Maizify added the Details wanted Need more details label Apr 2, 2022
@lidaweicn
Copy link
Author

我用的音频是其他网址的音频,不是在项目路径下,有时间我调试一下

@lidaweicn
Copy link
Author

3.14.5版本已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Details wanted Need more details
Projects
None yet
Development

No branches or pull requests

2 participants