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

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文档里没有此说明,求助高手了。

阅读 3.8k
1 个回答

不要用getUserMedia,用getDisplayMedia

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题