How to avoid echo and noise in javascript for webrtc

后端 未结 3 1769
名媛妹妹
名媛妹妹 2020-12-25 12:58

I am trying to implement a webrtc-based chat room. And I encountered the following problems in laptop. Without connecting to any other peer, just use getUserMedia(), I can g

相关标签:
3条回答
  • 2020-12-25 13:39

    Make sure that you are muting the local <video> element if you have it in the DOM:

    <video id="vid1" autoplay="true" muted="muted"></video>
    

    See this post on the discuss-webrtc mailing list for more details and the WebRTC samples.

    0 讨论(0)
  • 2020-12-25 13:45

    To resolve noise related issue, you should set autoplay=false for localstream.

    0 讨论(0)
  • 2020-12-25 13:54

    Do the followings:

    1) In localVideo do the this:

    localVideo.volume = 0;

    localVideo.muted = 0;

    2) Do same for the remoteVideo also:

    remoteVideo.volume = 0;

    remoteVideo.muted = 0;

    0 讨论(0)
提交回复
热议问题