W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > April 2017

[mediacapture-main] echoCancellation with advanced constraints

From: pantoin via GitHub <sysbot+gh@w3.org>
Date: Mon, 10 Apr 2017 16:37:55 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issues.opened-220702126-1491842273-sysbot+gh@w3.org>
pantoin has just created a new issue for https://github.com/w3c/mediacapture-main:

== echoCancellation with advanced constraints ==
Hi,

With webaudio if echoCancellation isn't set to false amplitude value changes after few seconds.

So constraints must be like this :
var constraints	= {
audio: {
optional: [{ echoCancellation: false }]
}
};

But with an advanced constraint (just set device id) i have this error :
navigator.getUserMedia error: TypeError: Failed to execute 'getUserMedia' on 'MediaDevices': Malformed constraint: Cannot use both optional/mandatory and specific or advanced constraints.

var constraints	= {
audio: {
deviceId: audioSource ? {exact: audioSource.id} : undefined,
optional: [{ echoCancellation: false }]
}
};

So i make the constraint like this :
var constraints	= {
audio: {
deviceId: audioSource ? {exact: audioSource.id} : undefined,
echoCancellation: false
}
};

But with this new constraint echoCancellation seems to be always active 👍 the output gain drops after few seconds.

Someone would have an idea about that?

Thank you

Using Chrome 57.0.2987.133

Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/443 using your GitHub account
Received on Monday, 10 April 2017 16:38:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:32 UTC