@webex/plugin-meetings 2.19.0 → 2.19.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/plugin-meetings",
3
- "version": "2.19.0",
3
+ "version": "2.19.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -24,21 +24,21 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@babel/runtime-corejs2": "^7.14.8",
27
- "@webex/webex-core": "2.19.0",
28
- "@webex/internal-plugin-mercury": "2.19.0",
29
- "@webex/internal-plugin-conversation": "2.19.0",
27
+ "@webex/webex-core": "2.19.1",
28
+ "@webex/internal-plugin-mercury": "2.19.1",
29
+ "@webex/internal-plugin-conversation": "2.19.1",
30
30
  "webrtc-adapter": "^7.7.0",
31
31
  "lodash": "^4.17.21",
32
32
  "uuid": "^3.3.2",
33
33
  "global": "^4.4.0",
34
34
  "ip-anonymize": "^0.1.0",
35
- "@webex/common": "2.19.0",
35
+ "@webex/common": "2.19.1",
36
36
  "bowser": "^2.11.0",
37
37
  "sdp-transform": "^2.12.0",
38
38
  "readable-stream": "^3.6.0",
39
- "@webex/common-timers": "2.19.0",
39
+ "@webex/common-timers": "2.19.1",
40
40
  "btoa": "^1.2.1",
41
- "@webex/internal-media-core": "^0.0.6-beta",
41
+ "@webex/internal-media-core": "^0.0.7-beta",
42
42
  "javascript-state-machine": "^3.1.0",
43
43
  "envify": "^4.1.0"
44
44
  }
@@ -109,8 +109,7 @@ class EffectsState {
109
109
  await meeting.updateAudio({
110
110
  sendAudio: true,
111
111
  receiveAudio: meeting.mediaProperties.mediaDirection.receiveAudio,
112
- stream: audioStream,
113
- bnrEnabled: bnr.enabled
112
+ stream: audioStream
114
113
  });
115
114
 
116
115
  LoggerProxy.logger.info('Meeting:effectState#enableBNR. Updated meeting audio with bnr enabled track');
@@ -4575,8 +4575,9 @@ export default class Meeting extends StatelessWebexPlugin {
4575
4575
  return this.enqueueMediaUpdate(MEDIA_UPDATE_TYPE.AUDIO, options);
4576
4576
  }
4577
4577
  const {
4578
- sendAudio, receiveAudio, stream, bnrEnabled
4578
+ sendAudio, receiveAudio, stream
4579
4579
  } = options;
4580
+
4580
4581
  const {audioTransceiver} = this.mediaProperties.peerConnection;
4581
4582
  let track = MeetingUtil.getTrack(stream).audioTrack;
4582
4583
 
@@ -4584,10 +4585,14 @@ export default class Meeting extends StatelessWebexPlugin {
4584
4585
  return Promise.reject(new ParameterError('Pass sendAudio and receiveAudio parameter'));
4585
4586
  }
4586
4587
 
4587
- if (sendAudio && !this.isAudioMuted() && (bnrEnabled === BNR_STATUS.ENABLED || bnrEnabled === BNR_STATUS.SHOULD_ENABLE)) {
4588
- LoggerProxy.logger.info('Meeting:index#updateAudio. Calling WebRTC enable bnr method');
4589
- track = await this.internal_enableBNR(track);
4590
- LoggerProxy.logger.info('Meeting:index#updateAudio. WebRTC enable bnr request completed');
4588
+ if (this.effects && this.effects.state) {
4589
+ const bnrEnabled = this.effects.state.bnr.enabled;
4590
+
4591
+ if (sendAudio && !this.isAudioMuted() && (bnrEnabled === BNR_STATUS.ENABLED || bnrEnabled === BNR_STATUS.SHOULD_ENABLE)) {
4592
+ LoggerProxy.logger.info('Meeting:index#updateAudio. Calling WebRTC enable bnr method');
4593
+ track = await this.internal_enableBNR(track);
4594
+ LoggerProxy.logger.info('Meeting:index#updateAudio. WebRTC enable bnr request completed');
4595
+ }
4591
4596
  }
4592
4597
 
4593
4598
  return MeetingUtil.validateOptions({sendAudio, localStream: stream})
@@ -2,9 +2,9 @@
2
2
  import {assert} from '@webex/test-helper-chai';
3
3
  import sinon from 'sinon';
4
4
  import MockWebex from '@webex/test-helper-mock-webex';
5
+ import {BNR_STATUS} from '@webex/plugin-meetings/src/constants';
5
6
 
6
7
  import BEHAVIORAL_METRICS from '@webex/plugin-meetings/src/metrics/constants';
7
- import {BNR_STATUS} from '@webex/plugin-meetings/src/constants';
8
8
  import Meeting from '@webex/plugin-meetings/src/meeting';
9
9
  import Meetings from '@webex/plugin-meetings';
10
10
  import Metrics from '@webex/plugin-meetings/src/metrics';
@@ -178,6 +178,7 @@ describe('plugin-meetings', () => {
178
178
 
179
179
  meeting.addMedia = sinon.stub().returns(Promise.resolve());
180
180
  meeting.getMediaStreams = sinon.stub().returns(Promise.resolve());
181
+ sinon.stub(meeting, 'effects').value(effects);
181
182
  sinon.replace(meeting, 'addMedia', () => {
182
183
  sinon.stub(meeting.mediaProperties, 'audioTrack').value(fakeMediaTrack());
183
184
  sinon.stub(meeting.mediaProperties, 'mediaDirection').value({