Browse Source

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

master
xsx 4 months ago
parent
commit
724291446b
  1. 1
      im-web/src/components/rtc/RtcPrivateVideo.vue

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

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

Loading…
Cancel
Save