Преглед на файлове

!176 fix: 语音通话会听到自己声音的bug
Merge pull request !176 from blue/v_3.0.0

blue преди 3 месеца
родител
ревизия
90797e2263
променени са 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("打开麦克风失败")