pad上用html5录屏录音时回声很严重、原因时把话筒输入的声音也录进去了,求助

热情的王宗岳
  • 637
start() {
      window.navigator.mediaDevices
        .getUserMedia(this.constraints)
        .then(stream => {
          this.mediaStream = stream;
          this.streamVideo.srcObject = stream;
          this.streamVideo.play();
          this.recorder = new MediaRecorder(stream);
          this.recorder.ondataavailable = e => {
            this.chunk = e.data;
            this.download.href = window.URL.createObjectURL(chunk);
          };
          this.recorder.start();
        });
    },

api文档里没有此说明,求助高手了。

回复
阅读 1.9k
1 个回答

不要用getUserMedia,用getDisplayMedia

宣传栏