瀏覽代碼

fix: 语音通话会听到自己声音的bug

xsx 3 月之前
父節點
當前提交
724291446b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      im-web/src/components/rtc/RtcPrivateVideo.vue

+ 1 - 0
im-web/src/components/rtc/RtcPrivateVideo.vue

@@ -298,6 +298,7 @@ export default {
           this.camera.openAudio().then((stream) => {
             this.localStream = stream;
             this.$refs.localVideo.srcObject = stream;
+            this.$refs.localVideo.muted = true;
             resolve(stream);
           }).catch((e) => {
             this.$message.error("打开麦克风失败")