0

我有:

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");
      });

这很好用: 在此处输入图像描述

但是当我播放时,会显示另一个波形: 在此处输入图像描述

我究竟做错了什么?

4

1 回答 1

0

将它们都设置为相同的颜色似乎已经解决了这个问题:

        waveColor: "blue",
        progressColor: "red"
于 2019-10-14T12:55:03.997 回答