简体   繁体   English

waveurfer.js play([start [,end]])结束不起作用

[英]wavesurfer.js play([start[, end]]) end not working

I'm making a sampler with wavesurfer.js and recorder.js. 我正在用waveurfer.js和recorder.js做一个采样器。 everything is working smoothly except i can't adjust the loop length using play([start[, end]]). 一切工作正常,除非我无法使用play([start [,end]])调整循环长度。

wavesurfer.seekTo(1);
wavesurfer.play(1,2);

the seekto() method works fine but can't change the end of the loop. seekto()方法工作正常,但不能更改循环的结尾。 I want to be able to start the sample at 1 second in and end 2 seconds in. 我希望能够在1秒内开始采样并在2秒内结束采样。

please help 请帮忙

对于感兴趣的任何人,此问题已解决,.seekTo()现在可以按预期工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM