is there a way to disable the WebRTC "auto gain control feature" by default, by applying some javascript code to the app files?
i am using simplewebrtc.
You can turn off audio processing using constraints (use https fiddle for Chrome):
var constraints = { audio: { echoCancellation: false, noiseSuppression: false, autoGainControl: false, } }; navigator.mediaDevices.getUserMedia(constraints) .then(stream => audio.srcObject = stream) .catch(e => log(e)); var log = msg => div.innerHTML += msg + "<br>";
<audio id="audio" controls autoplay></audio><br> <div id="div"></div> <script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
1.4m articles
1.4m replys
5 comments
57.0k users