Parcourir la source

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

xsx il y a 3 mois
Parent
commit
724291446b
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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("打开麦克风失败")