From 14f725cee1c37d9348539fedd888bac87f2cd3b4 Mon Sep 17 00:00:00 2001 From: David Novicki Date: Tue, 4 Sep 2018 14:21:59 -0700 Subject: [PATCH] added optional support for echoCancellationType --- src/js/rtc_session.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/rtc_session.js b/src/js/rtc_session.js index ccce1b8..d243f56 100644 --- a/src/js/rtc_session.js +++ b/src/js/rtc_session.js @@ -703,6 +703,9 @@ export default class RtcSession { set echoCancellation(flag) { this._echoCancellation = flag; } + set echoCancellationType(type) { + this._echoCancellationType = type; + } set enableVideo(flag) { this._enableVideo = flag; } @@ -1088,6 +1091,9 @@ export default class RtcSession { if (typeof self._echoCancellation !== 'undefined') { audioConstraints.echoCancellation = !!self._echoCancellation; } + if (typeof self._echoCancellationType !== 'undefined') { + audioConstraints.echoCancellationType = self._echoCancellationType; + } if (Object.keys(audioConstraints).length > 0) { mediaConstraints.audio = audioConstraints; } else {