最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - NoiseEcho in webRTC video chat - Stack Overflow

programmeradmin1浏览0评论

I have created an application using webRTC and tomcat 7. I am able to connect two client for video chat.one client is in sony laptop and other is in HP desktop PC(with Logitech webCam). Video is working fine but audio is generating too much echo. I have google multiple times but i didn't found any solution.

Can this echo problem be resolved at java script level using getUserMedia() or PeerConnection() APIs?

I have checked my browser versions both are chrome 28+.

Please help me out.

I have created an application using webRTC and tomcat 7. I am able to connect two client for video chat.one client is in sony laptop and other is in HP desktop PC(with Logitech webCam). Video is working fine but audio is generating too much echo. I have google multiple times but i didn't found any solution.

Can this echo problem be resolved at java script level using getUserMedia() or PeerConnection() APIs?

I have checked my browser versions both are chrome 28+.

Please help me out.

Share Improve this question asked Aug 9, 2013 at 10:30 user1249068user1249068 611 silver badge3 bronze badges 2
  • Did you figure out a solution to this problem? – arao6 Commented Sep 24, 2014 at 3:05
  • This worked in my case: stackoverflow./a/18407430/1067326 – Mostafiz Rahman Commented Apr 24, 2021 at 21:25
Add a ment  | 

4 Answers 4

Reset to default 1

May this ment help you. A software remendation seems the only "simple" solution. Or settings for Windows >= 7 as explained here.

Updated:

Default volume must be set to "0" until remote media stream starts flowing; use "setTimeout" to wait at least "1" second and then set volume back to "1".

Actually, noise occurs out of "huge-audio" bandwidth which happens as soon as "onaddstream" event fires.

If you check "audioInputLevel" via "chrome://webrtc-internals" you'll see its value something like "25000" as soon as "onaddstream" event fires; however in a few milliseconds later, "audioInputLevel" goes down between 1-and-150 and stays lower.

Updated at Jan 12, 2016

This doc may help: http://www.slideshare/MuazKhan/echo-in-webrtc-why

You can even set VoiceActivityDetection:false as SDP-constraints to minimize peer-level echo.

the solution to avoid the local stream noise is,just go to your html file where the element is there and just add muted="muted".This will avoid the noise of local stream till the remote stream is started

You should add muted="muted" attribute to video element to which you are streaming local video. In this case you will hear the sound of remote peer video, but not your local video.

adding attribute muted="muted" in video tag which is used for streaming will resolve this problem.

发布评论

评论列表(0)

  1. 暂无评论