Browse Source

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

Merge pull request !176 from blue/v_3.0.0
master
blue 4 months ago
committed by Gitee
parent
commit
90797e2263
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
  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