I am trying to implement a webrtc-based video chat room and I encountered the following problem.
When the call starts and my local stream goes, I listen to my audio on my device before the other device receives it. The devices are far enough apart so that the echo does not affect them. I don't know if that happens because I did something wrong or it is always like that.
I appreciate any recommendations.
Asked
Active
Viewed 294 times
2

Matias
- 21
- 2
-
1What is the question? To listen to the local audio? – Dirk V Oct 05 '20 at 22:00
-
The question would be how to eliminate the local audio feedback I am getting. I don't know if that happens because I did something wrong or it's always like that. Thanks. – Matias Oct 07 '20 at 00:55
-
1Your RTC view uses the localStream. Maybe you're putting it into a video tag that isn't muted. In that case add "mute" to the video elem – Dirk V Oct 07 '20 at 08:02
-
Yes, but the problem is that this occurs only when the connection is established, so I don't think the problem has to do with that. – Matias Oct 08 '20 at 18:39
-
You didn't provide the code where you actually use the stream. It is definitely somewhere that you put the stream where sound comes out. Maybe you switched the streams in some way. – Dirk V Oct 10 '20 at 09:34
-
Is the feedback like realtime or does it have a little delay on it? Maybe the other peer resends the stream he got instead of sending the local one. – Dirk V Oct 10 '20 at 09:36
-
Yes, it has a little delay. – Matias Oct 14 '20 at 18:13