@webex/calling 3.11.0-next.1 → 3.11.0-next.2
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 -7
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +5 -5
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/module/CallingClient/calling/call.js +1 -1
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -25,7 +25,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/he
|
|
|
25
25
|
var _internalMediaCore = require("@webex/internal-media-core");
|
|
26
26
|
var _xstate = require("xstate");
|
|
27
27
|
var _uuid = require("uuid");
|
|
28
|
-
var
|
|
28
|
+
var _mediaHelpers = require("@webex/media-helpers");
|
|
29
29
|
var _internalPluginMetrics = require("@webex/internal-plugin-metrics");
|
|
30
30
|
var _types = require("../../Errors/types");
|
|
31
31
|
var _Utils = require("../../common/Utils");
|
|
@@ -352,8 +352,8 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
352
352
|
if (_this.localAudioStream) {
|
|
353
353
|
var effect = _this.localAudioStream.getEffectByKind(_constants.NOISE_REDUCTION_EFFECT);
|
|
354
354
|
if (effect === addedEffect) {
|
|
355
|
-
effect.on(
|
|
356
|
-
effect.on(
|
|
355
|
+
effect.on(_mediaHelpers.EffectEvent.Enabled, _this.onEffectEnabled);
|
|
356
|
+
effect.on(_mediaHelpers.EffectEvent.Disabled, _this.onEffectDisabled);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
});
|
|
@@ -3205,8 +3205,8 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
3205
3205
|
if (this.localAudioStream) {
|
|
3206
3206
|
var effect = this.localAudioStream.getEffectByKind(_constants.NOISE_REDUCTION_EFFECT);
|
|
3207
3207
|
if (effect) {
|
|
3208
|
-
effect.off(
|
|
3209
|
-
effect.off(
|
|
3208
|
+
effect.off(_mediaHelpers.EffectEvent.Enabled, this.onEffectEnabled);
|
|
3209
|
+
effect.off(_mediaHelpers.EffectEvent.Disabled, this.onEffectDisabled);
|
|
3210
3210
|
}
|
|
3211
3211
|
this.localAudioStream.off(_internalMediaCore.LocalStreamEventNames.EffectAdded, this.registerEffectListener);
|
|
3212
3212
|
this.localAudioStream.off(_internalMediaCore.LocalStreamEventNames.OutputTrackChange, this.updateTrack);
|
|
@@ -3219,8 +3219,8 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
3219
3219
|
localAudioStream.on(_internalMediaCore.LocalStreamEventNames.EffectAdded, this.registerEffectListener);
|
|
3220
3220
|
var effect = localAudioStream.getEffectByKind(_constants.NOISE_REDUCTION_EFFECT);
|
|
3221
3221
|
if (effect) {
|
|
3222
|
-
effect.on(
|
|
3223
|
-
effect.on(
|
|
3222
|
+
effect.on(_mediaHelpers.EffectEvent.Enabled, this.onEffectEnabled);
|
|
3223
|
+
effect.on(_mediaHelpers.EffectEvent.Disabled, this.onEffectDisabled);
|
|
3224
3224
|
if (effect.isEnabled) {
|
|
3225
3225
|
this.onEffectEnabled();
|
|
3226
3226
|
}
|