Search code examples
socket.iovideo-streamingwebrtcgetusermediavideo-conferencing

Screeching Feedback sound in Node.js


I implementing webRTC with socket.io with for signaling, but earlier as soon as I opened the URL it used to give screeching sound, but then after some research, I added a muted attribute in the local video tag so it got fixed but now when I call someone then both the browser have a high pitched screeching sound(less on macOS chrome and more on android chrome), the code which I using as a basis is from this tutorial, I modified the code on line 148 to have audio: true and the HTML video tag for the local video to have muted, rest of the code is exactly same as the repo.

I have read a lot of articles on it but I am not able to find a solution to the screeching. Any help would be appreciated, Thanks.


Solution

  • If both the devices are near to each other, then it causes this sound. If you move the devices far away, then there won't be screeching sound...

    This happens with other video chat applications like zoom and google-meet also...