Tell Chromium not to change gain during recording
This commit is contained in:
parent
201845c56a
commit
32756f57d2
|
@ -68,7 +68,10 @@ export class RecorderClass {
|
||||||
this.recorder.onError = this.onError.bind(this);
|
this.recorder.onError = this.onError.bind(this);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
const stream = await navigator.mediaDevices.getUserMedia({
|
||||||
|
// @ts-expect-error Typescript doesn't know about these important options
|
||||||
|
audio: { mandatory: { googAutoGainControl: false } },
|
||||||
|
});
|
||||||
if (!this.context || !this.input) {
|
if (!this.context || !this.input) {
|
||||||
const err = new Error(
|
const err = new Error(
|
||||||
'Recorder/getUserMedia/stream: Missing context or input!'
|
'Recorder/getUserMedia/stream: Missing context or input!'
|
||||||
|
|
Loading…
Reference in New Issue