@webex/plugin-meetings 3.0.0-beta.250 → 3.0.0-beta.251

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 (52) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +1 -1
  3. package/dist/constants.js +3 -1
  4. package/dist/constants.js.map +1 -1
  5. package/dist/index.js +30 -24
  6. package/dist/index.js.map +1 -1
  7. package/dist/interpretation/index.js +1 -1
  8. package/dist/interpretation/siLanguage.js +1 -1
  9. package/dist/media/index.js +18 -19
  10. package/dist/media/index.js.map +1 -1
  11. package/dist/media/properties.js +52 -52
  12. package/dist/media/properties.js.map +1 -1
  13. package/dist/meeting/index.js +408 -345
  14. package/dist/meeting/index.js.map +1 -1
  15. package/dist/meeting/muteState.js +39 -38
  16. package/dist/meeting/muteState.js.map +1 -1
  17. package/dist/meeting/util.js +9 -9
  18. package/dist/meeting/util.js.map +1 -1
  19. package/dist/multistream/sendSlotManager.js +233 -0
  20. package/dist/multistream/sendSlotManager.js.map +1 -0
  21. package/dist/reconnection-manager/index.js +10 -10
  22. package/dist/reconnection-manager/index.js.map +1 -1
  23. package/dist/types/constants.d.ts +2 -0
  24. package/dist/types/index.d.ts +1 -1
  25. package/dist/types/media/index.d.ts +2 -2
  26. package/dist/types/media/properties.d.ts +24 -24
  27. package/dist/types/meeting/index.d.ts +56 -49
  28. package/dist/types/meeting/muteState.d.ts +16 -16
  29. package/dist/types/meeting/util.d.ts +2 -2
  30. package/dist/types/multistream/sendSlotManager.d.ts +61 -0
  31. package/dist/types/reconnection-manager/index.d.ts +2 -2
  32. package/package.json +20 -20
  33. package/src/constants.ts +2 -0
  34. package/src/index.ts +14 -13
  35. package/src/media/index.ts +32 -34
  36. package/src/media/properties.ts +47 -46
  37. package/src/meeting/index.ts +395 -312
  38. package/src/meeting/muteState.ts +35 -34
  39. package/src/meeting/util.ts +11 -10
  40. package/src/multistream/sendSlotManager.ts +170 -0
  41. package/src/reconnection-manager/index.ts +8 -8
  42. package/test/integration/spec/converged-space-meetings.js +7 -7
  43. package/test/integration/spec/journey.js +85 -103
  44. package/test/integration/spec/space-meeting.js +9 -9
  45. package/test/unit/spec/media/index.ts +23 -66
  46. package/test/unit/spec/meeting/index.js +768 -769
  47. package/test/unit/spec/meeting/muteState.js +113 -75
  48. package/test/unit/spec/meeting/utils.js +14 -16
  49. package/test/unit/spec/meetings/index.js +2 -2
  50. package/test/unit/spec/multistream/sendSlotManager.ts +242 -0
  51. package/test/unit/spec/reconnection-manager/index.js +4 -3
  52. package/test/utils/integrationTestUtils.js +4 -4
@@ -1,10 +1,11 @@
1
1
  import {ConnectionState, Event} from '@webex/internal-media-core';
2
2
 
3
3
  import {
4
- LocalCameraTrack,
5
- LocalMicrophoneTrack,
6
- LocalDisplayTrack,
7
- LocalSystemAudioTrack,
4
+ LocalCameraStream,
5
+ LocalMicrophoneStream,
6
+ LocalDisplayStream,
7
+ LocalSystemAudioStream,
8
+ RemoteStream,
8
9
  } from '@webex/media-helpers';
9
10
 
10
11
  import {MEETINGS, PC_BAIL_TIMEOUT, QUALITY_LEVELS} from '../constants';
@@ -23,18 +24,18 @@ export type MediaDirection = {
23
24
  * @class MediaProperties
24
25
  */
25
26
  export default class MediaProperties {
26
- audioTrack?: LocalMicrophoneTrack;
27
+ audioStream?: LocalMicrophoneStream;
27
28
  mediaDirection: MediaDirection;
28
29
  mediaSettings: any;
29
30
  webrtcMediaConnection: any;
30
- remoteAudioTrack: any;
31
+ remoteAudioStream: RemoteStream;
31
32
  remoteQualityLevel: any;
32
- remoteShare: any;
33
- remoteVideoTrack: any;
34
- shareVideoTrack?: LocalDisplayTrack;
35
- shareAudioTrack?: LocalSystemAudioTrack;
33
+ remoteShareStream: RemoteStream;
34
+ remoteVideoStream: RemoteStream;
35
+ shareVideoStream?: LocalDisplayStream;
36
+ shareAudioStream?: LocalSystemAudioStream;
36
37
  videoDeviceId: any;
37
- videoTrack?: LocalCameraTrack;
38
+ videoStream?: LocalCameraStream;
38
39
  namespace = MEETINGS;
39
40
 
40
41
  /**
@@ -51,13 +52,13 @@ export default class MediaProperties {
51
52
  sendVideo: false,
52
53
  sendShare: false,
53
54
  };
54
- this.videoTrack = null;
55
- this.audioTrack = null;
56
- this.shareVideoTrack = null;
57
- this.shareAudioTrack = null;
58
- this.remoteShare = undefined;
59
- this.remoteAudioTrack = undefined;
60
- this.remoteVideoTrack = undefined;
55
+ this.videoStream = null;
56
+ this.audioStream = null;
57
+ this.shareVideoStream = null;
58
+ this.shareAudioStream = null;
59
+ this.remoteShareStream = undefined;
60
+ this.remoteAudioStream = undefined;
61
+ this.remoteVideoStream = undefined;
61
62
  this.remoteQualityLevel = QUALITY_LEVELS.HIGH;
62
63
  this.mediaSettings = {};
63
64
  this.videoDeviceId = null;
@@ -83,46 +84,46 @@ export default class MediaProperties {
83
84
  this.webrtcMediaConnection = mediaPeerConnection;
84
85
  }
85
86
 
86
- setLocalVideoTrack(videoTrack?: LocalCameraTrack) {
87
- this.videoTrack = videoTrack;
87
+ setLocalVideoStream(videoStream?: LocalCameraStream) {
88
+ this.videoStream = videoStream;
88
89
  }
89
90
 
90
- setLocalAudioTrack(audioTrack?: LocalMicrophoneTrack) {
91
- this.audioTrack = audioTrack;
91
+ setLocalAudioStream(audioStream?: LocalMicrophoneStream) {
92
+ this.audioStream = audioStream;
92
93
  }
93
94
 
94
- setLocalShareVideoTrack(shareVideoTrack?: LocalDisplayTrack) {
95
- this.shareVideoTrack = shareVideoTrack;
95
+ setLocalShareVideoStream(shareVideoStream?: LocalDisplayStream) {
96
+ this.shareVideoStream = shareVideoStream;
96
97
  }
97
98
 
98
- setLocalShareAudioTrack(shareAudioTrack?: LocalSystemAudioTrack) {
99
- this.shareAudioTrack = shareAudioTrack;
99
+ setLocalShareAudioStream(shareAudioStream?: LocalSystemAudioStream) {
100
+ this.shareAudioStream = shareAudioStream;
100
101
  }
101
102
 
102
103
  setRemoteQualityLevel(remoteQualityLevel) {
103
104
  this.remoteQualityLevel = remoteQualityLevel;
104
105
  }
105
106
 
106
- setRemoteShare(remoteShare) {
107
- this.remoteShare = remoteShare;
107
+ setRemoteShareStream(remoteShareStream: RemoteStream) {
108
+ this.remoteShareStream = remoteShareStream;
108
109
  }
109
110
 
110
111
  /**
111
- * Sets the remote audio track
112
- * @param {MediaTrack} remoteAudioTrack MediaTrack to save
112
+ * Sets the remote audio stream
113
+ * @param {RemoteStream} remoteAudioStream RemoteStream to save
113
114
  * @returns {void}
114
115
  */
115
- setRemoteAudioTrack(remoteAudioTrack: any) {
116
- this.remoteAudioTrack = remoteAudioTrack;
116
+ setRemoteAudioStream(remoteAudioStream: RemoteStream) {
117
+ this.remoteAudioStream = remoteAudioStream;
117
118
  }
118
119
 
119
120
  /**
120
- * Sets the remote video track
121
- * @param {MediaTrack} remoteVideoTrack MediaTrack to save
121
+ * Sets the remote video stream
122
+ * @param {RemoteStream} remoteVideoStream RemoteStream to save
122
123
  * @returns {void}
123
124
  */
124
- setRemoteVideoTrack(remoteVideoTrack: any) {
125
- this.remoteVideoTrack = remoteVideoTrack;
125
+ setRemoteVideoStream(remoteVideoStream: RemoteStream) {
126
+ this.remoteVideoStream = remoteVideoStream;
126
127
  }
127
128
 
128
129
  /**
@@ -143,29 +144,29 @@ export default class MediaProperties {
143
144
  * @returns {void}
144
145
  */
145
146
  unsetRemoteMedia() {
146
- this.remoteAudioTrack = null;
147
- this.remoteVideoTrack = null;
147
+ this.remoteAudioStream = null;
148
+ this.remoteVideoStream = null;
148
149
  }
149
150
 
150
- unsetRemoteShare() {
151
- this.remoteShare = null;
151
+ unsetRemoteShareStream() {
152
+ this.remoteShareStream = null;
152
153
  }
153
154
 
154
155
  /**
155
- * Unsets all remote tracks
156
+ * Unsets all remote streams
156
157
  * @returns {void}
157
158
  */
158
- unsetRemoteTracks() {
159
+ unsetRemoteStreams() {
159
160
  this.unsetRemoteMedia();
160
- this.unsetRemoteShare();
161
+ this.unsetRemoteShareStream();
161
162
  }
162
163
 
163
164
  /**
164
- * Returns if we have at least one local share track or not.
165
+ * Returns if we have at least one local share stream or not.
165
166
  * @returns {Boolean}
166
167
  */
167
- hasLocalShareTrack() {
168
- return !!(this.shareAudioTrack || this.shareVideoTrack);
168
+ hasLocalShareStream() {
169
+ return !!(this.shareAudioStream || this.shareVideoStream);
169
170
  }
170
171
 
171
172
  /**