@webex/calling 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CallingClient/calling/call.js +7 -6
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +3 -21
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/module/CallingClient/calling/call.js +5 -3
- package/dist/types/CallingClient/calling/call.d.ts +1 -0
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -171,6 +171,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
171
171
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onEffectDisabled", function () {
|
|
172
172
|
_this.metricManager.submitBNRMetric(_types5.METRIC_EVENT.BNR_DISABLED, _types5.METRIC_TYPE.BEHAVIORAL, _this.callId, _this.correlationId);
|
|
173
173
|
});
|
|
174
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updateTrack", function (audioTrack) {
|
|
175
|
+
_this.mediaConnection.updateLocalTracks({
|
|
176
|
+
audio: audioTrack
|
|
177
|
+
});
|
|
178
|
+
});
|
|
174
179
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "registerEffectListener", function (addedEffect) {
|
|
175
180
|
if (_this.localAudioStream) {
|
|
176
181
|
var effect = _this.localAudioStream.getEffectByKind(_constants.NOISE_REDUCTION_EFFECT);
|
|
@@ -2871,17 +2876,13 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2871
2876
|
effect.off(_webMediaEffects.EffectEvent.Disabled, this.onEffectDisabled);
|
|
2872
2877
|
}
|
|
2873
2878
|
this.localAudioStream.off(_internalMediaCore.LocalStreamEventNames.EffectAdded, this.registerEffectListener);
|
|
2879
|
+
this.localAudioStream.off(_internalMediaCore.LocalStreamEventNames.OutputTrackChange, this.updateTrack);
|
|
2874
2880
|
}
|
|
2875
2881
|
}
|
|
2876
2882
|
}, {
|
|
2877
2883
|
key: "registerListeners",
|
|
2878
2884
|
value: function registerListeners(localAudioStream) {
|
|
2879
|
-
|
|
2880
|
-
localAudioStream.on(_internalMediaCore.LocalStreamEventNames.OutputTrackChange, function (audioTrack) {
|
|
2881
|
-
_this16.mediaConnection.updateLocalTracks({
|
|
2882
|
-
audio: audioTrack
|
|
2883
|
-
});
|
|
2884
|
-
});
|
|
2885
|
+
localAudioStream.on(_internalMediaCore.LocalStreamEventNames.OutputTrackChange, this.updateTrack);
|
|
2885
2886
|
localAudioStream.on(_internalMediaCore.LocalStreamEventNames.EffectAdded, this.registerEffectListener);
|
|
2886
2887
|
var effect = localAudioStream.getEffectByKind(_constants.NOISE_REDUCTION_EFFECT);
|
|
2887
2888
|
if (effect) {
|