Skip to content

Commit

Permalink
fix(flat-web): don't play local audio track (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious committed Jun 15, 2021
1 parent 2b2878b commit 0f7d0e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/flat-web/src/apiMiddleware/rtc/avatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ export class RtcAvatar {
} else if (enable) {
const audioTrack = await AgoraRTC.createMicrophoneAudioTrack();
this.audioTrack = audioTrack;
audioTrack.play();
// NOTE: playing local audio track may cause echo
// audioTrack.play();
await this.client.publish(audioTrack);
}
} else {
Expand Down

0 comments on commit 0f7d0e0

Please sign in to comment.