[英]Why do I have 2 waveforms with wavesurfer.js when playing?
我有:
this.wavesurfer = WaveSurfer.create({
container: "#wavesurfer-player",
height: 50,
audioContext: _.get(this.$store, "state.audioContext.context"),
waveColor: "blue",
progressColor: "red"
});
this.wavesurfer.on("loading", progress => {
this.loadingProgress = progress;
});
this.wavesurfer.load(this.url);
this.wavesurfer.on("ready", () => {
this.loadingProgress = 100;
this.wavesurfer.un("ready");
});
我究竟做错了什么?
将它们都设置为相同的颜色似乎已经解决了这个问题:
waveColor: "blue",
progressColor: "red"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.