demo · v141

Echo Cancellation Mode

Pick an echoCancellationMode, request the mic via getUserMedia, then watch the resulting input level (and the settings the browser actually applied) in real time. The probe also surfaces what getSupportedConstraints() claims.

probing constraint support…
input level
No stream started.

the call

const stream = await navigator.mediaDevices.getUserMedia({
  audio: {
    echoCancellation: true,
    echoCancellationMode: "remote-only",  // NEW in 141
  },
});
console.log(stream.getAudioTracks()[0].getSettings());
// { echoCancellationMode: "remote-only", ... }

see also