@webex/plugin-meetings 2.37.2 → 2.38.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.
Files changed (77) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/config.js.map +1 -1
  3. package/dist/constants.js +2 -1
  4. package/dist/constants.js.map +1 -1
  5. package/dist/locus-info/index.js +24 -0
  6. package/dist/locus-info/index.js.map +1 -1
  7. package/dist/locus-info/parser.js +1 -0
  8. package/dist/locus-info/parser.js.map +1 -1
  9. package/dist/media/properties.js.map +1 -1
  10. package/dist/meeting/index.js +405 -352
  11. package/dist/meeting/index.js.map +1 -1
  12. package/dist/meeting/muteState.js +13 -0
  13. package/dist/meeting/muteState.js.map +1 -1
  14. package/dist/meeting/request.js +0 -27
  15. package/dist/meeting/request.js.map +1 -1
  16. package/dist/meeting/util.js +0 -56
  17. package/dist/meeting/util.js.map +1 -1
  18. package/dist/meeting-info/meeting-info-v2.js +2 -0
  19. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  20. package/dist/meetings/index.js +27 -17
  21. package/dist/meetings/index.js.map +1 -1
  22. package/dist/meetings/request.js +14 -12
  23. package/dist/meetings/request.js.map +1 -1
  24. package/dist/member/util.js +3 -1
  25. package/dist/member/util.js.map +1 -1
  26. package/dist/members/request.js +3 -1
  27. package/dist/members/request.js.map +1 -1
  28. package/dist/reachability/index.js +4 -4
  29. package/dist/reachability/index.js.map +1 -1
  30. package/dist/reactions/reactions.type.js +1 -0
  31. package/dist/reactions/reactions.type.js.map +1 -1
  32. package/dist/recording-controller/enums.js +17 -0
  33. package/dist/recording-controller/enums.js.map +1 -0
  34. package/dist/recording-controller/index.js +343 -0
  35. package/dist/recording-controller/index.js.map +1 -0
  36. package/dist/recording-controller/util.js +63 -0
  37. package/dist/recording-controller/util.js.map +1 -0
  38. package/dist/roap/index.js +16 -10
  39. package/dist/roap/index.js.map +1 -1
  40. package/dist/roap/turnDiscovery.js +6 -4
  41. package/dist/roap/turnDiscovery.js.map +1 -1
  42. package/dist/statsAnalyzer/mqaUtil.js +18 -6
  43. package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
  44. package/package.json +23 -18
  45. package/src/config.ts +1 -1
  46. package/src/constants.ts +1 -0
  47. package/src/locus-info/index.ts +24 -0
  48. package/src/locus-info/parser.ts +1 -0
  49. package/src/media/properties.ts +1 -1
  50. package/src/meeting/index.ts +121 -70
  51. package/src/meeting/muteState.ts +11 -0
  52. package/src/meeting/request.ts +0 -31
  53. package/src/meeting/util.ts +0 -60
  54. package/src/meeting-info/meeting-info-v2.ts +2 -0
  55. package/src/meetings/index.ts +8 -3
  56. package/src/meetings/request.ts +1 -1
  57. package/src/member/util.ts +2 -1
  58. package/src/members/request.ts +1 -0
  59. package/src/reachability/index.ts +2 -1
  60. package/src/reactions/reactions.type.ts +2 -1
  61. package/src/recording-controller/enums.ts +8 -0
  62. package/src/recording-controller/index.ts +315 -0
  63. package/src/recording-controller/util.ts +58 -0
  64. package/src/roap/index.ts +8 -8
  65. package/src/roap/turnDiscovery.ts +5 -5
  66. package/src/statsAnalyzer/mqaUtil.ts +6 -0
  67. package/test/integration/spec/journey.js +1 -1
  68. package/test/integration/spec/space-meeting.js +1 -1
  69. package/test/integration/spec/transcription.js +1 -1
  70. package/test/unit/spec/meeting/index.js +33 -6
  71. package/test/unit/spec/meeting/muteState.js +11 -0
  72. package/test/unit/spec/meeting/utils.js +0 -127
  73. package/test/unit/spec/recording-controller/index.js +231 -0
  74. package/test/unit/spec/recording-controller/util.js +102 -0
  75. package/test/unit/spec/roap/index.ts +10 -5
  76. package/test/unit/spec/roap/turnDiscovery.ts +13 -8
  77. package/tsconfig.json +6 -0
@@ -40,8 +40,12 @@ describe('TurnDiscovery', () => {
40
40
  mediaId: 'fake media id',
41
41
  locusUrl: `https://locus-a.wbx2.com/locus/api/v1/loci/${FAKE_LOCUS_ID}`,
42
42
  roapSeq: -1,
43
- isAudioMuted: () => true,
44
- isVideoMuted: () => false,
43
+ audio:{
44
+ isLocallyMuted: () => true,
45
+ },
46
+ video:{
47
+ isLocallyMuted: () => false,
48
+ },
45
49
  setRoapSeq: sinon.fake((newSeq) => {
46
50
  testMeeting.roapSeq = newSeq;
47
51
  }),
@@ -72,8 +76,8 @@ describe('TurnDiscovery', () => {
72
76
  correlationId: testMeeting.correlationId,
73
77
  locusSelfUrl: testMeeting.selfUrl,
74
78
  mediaId: expectedMediaId,
75
- audioMuted: testMeeting.isAudioMuted(),
76
- videoMuted: testMeeting.isVideoMuted(),
79
+ audioMuted: testMeeting.audio?.isLocallyMuted(),
80
+ videoMuted: testMeeting.video?.isLocallyMuted(),
77
81
  meetingId: testMeeting.id,
78
82
  });
79
83
 
@@ -104,7 +108,7 @@ describe('TurnDiscovery', () => {
104
108
 
105
109
  // check that TURN_DISCOVERY_REQUEST was sent
106
110
  await checkRoapMessageSent('TURN_DISCOVERY_REQUEST', 0);
107
-
111
+ // @ts-ignore
108
112
  mockRoapRequest.sendRoap.resetHistory();
109
113
 
110
114
  // simulate the response
@@ -141,6 +145,7 @@ describe('TurnDiscovery', () => {
141
145
  await checkRoapMessageSent('TURN_DISCOVERY_REQUEST', 0, '');
142
146
 
143
147
  // the main part of the test is complete now, checking the remaining part of the flow just for completeness
148
+ // @ts-ignore
144
149
  mockRoapRequest.sendRoap.resetHistory();
145
150
 
146
151
  // simulate the response
@@ -173,7 +178,7 @@ describe('TurnDiscovery', () => {
173
178
 
174
179
  // check that TURN_DISCOVERY_REQUEST was sent
175
180
  await checkRoapMessageSent('TURN_DISCOVERY_REQUEST', 0);
176
-
181
+ // @ts-ignore
177
182
  mockRoapRequest.sendRoap.resetHistory();
178
183
 
179
184
  // simulate the response with some extra headers
@@ -206,7 +211,7 @@ describe('TurnDiscovery', () => {
206
211
  const prevConfigValue = testMeeting.config.experimental.enableTurnDiscovery;
207
212
 
208
213
  testMeeting.config.experimental.enableTurnDiscovery = false;
209
-
214
+ // @ts-ignore
210
215
  const result = await new TurnDiscovery(mockRoapRequest).doTurnDiscovery(testMeeting);
211
216
 
212
217
  const {turnServerInfo, turnDiscoverySkippedReason} = result;
@@ -319,7 +324,7 @@ describe('TurnDiscovery', () => {
319
324
 
320
325
  // check that TURN_DISCOVERY_REQUEST was sent
321
326
  await checkRoapMessageSent('TURN_DISCOVERY_REQUEST', 0);
322
-
327
+ // @ts-ignore
323
328
  mockRoapRequest.sendRoap.resetHistory();
324
329
 
325
330
  // setup the mock so that sending of OK fails
package/tsconfig.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": [
4
+ "src"
5
+ ],
6
+ }