@webex/plugin-meetings 3.0.0-beta.422 → 3.0.0-beta.424

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": "3.0.0-beta.422",
3
+ "version": "3.0.0-beta.424",
4
4
  "description": "",
5
5
  "license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
6
6
  "contributors": [
@@ -33,12 +33,12 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@peculiar/webcrypto": "^1.4.3",
36
- "@webex/plugin-meetings": "3.0.0-beta.422",
37
- "@webex/test-helper-chai": "3.0.0-beta.422",
38
- "@webex/test-helper-mocha": "3.0.0-beta.422",
39
- "@webex/test-helper-mock-webex": "3.0.0-beta.422",
40
- "@webex/test-helper-retry": "3.0.0-beta.422",
41
- "@webex/test-helper-test-users": "3.0.0-beta.422",
36
+ "@webex/plugin-meetings": "3.0.0-beta.424",
37
+ "@webex/test-helper-chai": "3.0.0-beta.424",
38
+ "@webex/test-helper-mocha": "3.0.0-beta.424",
39
+ "@webex/test-helper-mock-webex": "3.0.0-beta.424",
40
+ "@webex/test-helper-retry": "3.0.0-beta.424",
41
+ "@webex/test-helper-test-users": "3.0.0-beta.424",
42
42
  "chai": "^4.3.4",
43
43
  "chai-as-promised": "^7.1.1",
44
44
  "jsdom-global": "3.0.2",
@@ -47,19 +47,19 @@
47
47
  "typescript": "^4.7.4"
48
48
  },
49
49
  "dependencies": {
50
- "@webex/common": "3.0.0-beta.422",
50
+ "@webex/common": "3.0.0-beta.424",
51
51
  "@webex/internal-media-core": "2.3.3",
52
- "@webex/internal-plugin-conversation": "3.0.0-beta.422",
53
- "@webex/internal-plugin-device": "3.0.0-beta.422",
54
- "@webex/internal-plugin-llm": "3.0.0-beta.422",
55
- "@webex/internal-plugin-mercury": "3.0.0-beta.422",
56
- "@webex/internal-plugin-metrics": "3.0.0-beta.422",
57
- "@webex/internal-plugin-support": "3.0.0-beta.422",
58
- "@webex/internal-plugin-user": "3.0.0-beta.422",
59
- "@webex/media-helpers": "3.0.0-beta.422",
60
- "@webex/plugin-people": "3.0.0-beta.422",
61
- "@webex/plugin-rooms": "3.0.0-beta.422",
62
- "@webex/webex-core": "3.0.0-beta.422",
52
+ "@webex/internal-plugin-conversation": "3.0.0-beta.424",
53
+ "@webex/internal-plugin-device": "3.0.0-beta.424",
54
+ "@webex/internal-plugin-llm": "3.0.0-beta.424",
55
+ "@webex/internal-plugin-mercury": "3.0.0-beta.424",
56
+ "@webex/internal-plugin-metrics": "3.0.0-beta.424",
57
+ "@webex/internal-plugin-support": "3.0.0-beta.424",
58
+ "@webex/internal-plugin-user": "3.0.0-beta.424",
59
+ "@webex/media-helpers": "3.0.0-beta.424",
60
+ "@webex/plugin-people": "3.0.0-beta.424",
61
+ "@webex/plugin-rooms": "3.0.0-beta.424",
62
+ "@webex/webex-core": "3.0.0-beta.424",
63
63
  "ampersand-collection": "^2.0.2",
64
64
  "bowser": "^2.11.0",
65
65
  "btoa": "^1.2.1",
package/src/constants.ts CHANGED
@@ -1249,12 +1249,6 @@ export const AVAILABLE_RESOLUTIONS = {
1249
1249
 
1250
1250
  export const MQA_INTERVAL = 60000; // mqa analyzer interval its fixed to 60000
1251
1251
 
1252
- export const MEDIA_DEVICES = {
1253
- MICROPHONE: 'microphone',
1254
- SPEAKER: 'speaker',
1255
- CAMERA: 'camera',
1256
- };
1257
-
1258
1252
  export const PSTN_STATUS = {
1259
1253
  JOINED: 'JOINED', // we have provisioned a pstn device, which can be used to connect
1260
1254
  CONNECTED: 'CONNECTED', // user is connected to audio with pstn device
@@ -1,9 +1,19 @@
1
+ import {_UNKNOWN_} from '../constants';
2
+
1
3
  export const emptyMqaInterval = {
2
4
  audioReceive: [],
3
5
  audioTransmit: [],
4
6
  intervalMetadata: {
5
7
  peerReflexiveIP: '0.0.0.0',
6
- peripherals: [],
8
+ speakerInfo: {
9
+ deviceName: _UNKNOWN_,
10
+ },
11
+ microphoneInfo: {
12
+ deviceName: _UNKNOWN_,
13
+ },
14
+ cameraInfo: {
15
+ deviceName: _UNKNOWN_,
16
+ },
7
17
  processAverageCPU: 0,
8
18
  processMaximumCPU: 0,
9
19
  systemAverageCPU: 0,
@@ -4,14 +4,7 @@ import {cloneDeep, isEmpty} from 'lodash';
4
4
  import {ConnectionState} from '@webex/internal-media-core';
5
5
 
6
6
  import EventsScope from '../common/events/events-scope';
7
- import {
8
- DEFAULT_GET_STATS_FILTER,
9
- STATS,
10
- MQA_INTERVAL,
11
- NETWORK_TYPE,
12
- MEDIA_DEVICES,
13
- _UNKNOWN_,
14
- } from '../constants';
7
+ import {DEFAULT_GET_STATS_FILTER, STATS, MQA_INTERVAL, NETWORK_TYPE, _UNKNOWN_} from '../constants';
15
8
  import {
16
9
  emptyAudioReceive,
17
10
  emptyAudioTransmit,
@@ -367,12 +360,13 @@ export class StatsAnalyzer extends EventsScope {
367
360
  newMqa.intervalMetadata.peerReflexiveIP = this.statsResults.connectionType.local.ipAddress;
368
361
 
369
362
  // Adding peripheral information
370
- newMqa.intervalMetadata.peripherals.push({information: _UNKNOWN_, name: MEDIA_DEVICES.SPEAKER});
363
+ newMqa.intervalMetadata.speakerInfo = {
364
+ deviceName: _UNKNOWN_,
365
+ };
371
366
  if (this.statsResults['audio-send']) {
372
- newMqa.intervalMetadata.peripherals.push({
373
- information: this.statsResults['audio-send'].trackLabel || _UNKNOWN_,
374
- name: MEDIA_DEVICES.MICROPHONE,
375
- });
367
+ newMqa.intervalMetadata.microphoneInfo = {
368
+ deviceName: this.statsResults['audio-send'].trackLabel || _UNKNOWN_,
369
+ };
376
370
  }
377
371
 
378
372
  const existingVideoSender = Object.keys(this.statsResults).find((item) =>
@@ -380,10 +374,9 @@ export class StatsAnalyzer extends EventsScope {
380
374
  );
381
375
 
382
376
  if (existingVideoSender) {
383
- newMqa.intervalMetadata.peripherals.push({
384
- information: this.statsResults[existingVideoSender].trackLabel || _UNKNOWN_,
385
- name: MEDIA_DEVICES.CAMERA,
386
- });
377
+ newMqa.intervalMetadata.cameraInfo = {
378
+ deviceName: this.statsResults[existingVideoSender].trackLabel || _UNKNOWN_,
379
+ };
387
380
  }
388
381
 
389
382
  newMqa.networkType = this.statsResults.connectionType.local.networkType;
@@ -776,13 +776,11 @@ describe('plugin-meetings', () => {
776
776
  await progressTime();
777
777
 
778
778
  assert.strictEqual(
779
- mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.MICROPHONE)
780
- .information,
779
+ mqeData.intervalMetadata.microphoneInfo.deviceName,
781
780
  'fake-microphone'
782
781
  );
783
782
  assert.strictEqual(
784
- mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.CAMERA)
785
- .information,
783
+ mqeData.intervalMetadata.cameraInfo.deviceName,
786
784
  'fake-camera'
787
785
  );
788
786
  });
@@ -796,13 +794,11 @@ describe('plugin-meetings', () => {
796
794
  await progressTime();
797
795
 
798
796
  assert.strictEqual(
799
- mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.MICROPHONE)
800
- .information,
797
+ mqeData.intervalMetadata.microphoneInfo.deviceName,
801
798
  _UNKNOWN_
802
799
  );
803
800
  assert.strictEqual(
804
- mqeData.intervalMetadata.peripherals.find((val) => val.name === MEDIA_DEVICES.CAMERA)
805
- .information,
801
+ mqeData.intervalMetadata.cameraInfo.deviceName,
806
802
  _UNKNOWN_
807
803
  );
808
804
  });