Fixed issue with HTML5 desktop recorder producing low or inaudible sound when used inline in Chrome on Android
FixFinally managed to pinpoint the cause of the issue.
The culprit for the resulting low audio was the audio constraint echoCancellation when set to false. Setting it to true solved the issue.
Here is a quick overview of what audio constraints were being set and what is being set now:
| constraint | before fix | now (after Android fix) |
|---|---|---|
echoCancellation | forced to false in pipe.js | not set, relying on browser default value which for now is true |
autoGainControl | set to false by Chrome/Firefox (inherited value from echoCancellation) | not set, relying on browser default value which for now is true |
noiseSuppression | controlled by the developer through the ns in the embed code, defaults to true | unchanged |
So to sum it up, we’ve decided to remove echoCancellation altogether and rely on the browser defaults which is echoCancellation set as true for Chrome, Safari, and Firefox.