@webex/plugin-meetings 2.60.0-next.4 → 2.60.0-next.6

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 (126) hide show
  1. package/dist/annotation/annotation.types.d.ts +42 -0
  2. package/dist/annotation/constants.d.ts +31 -0
  3. package/dist/annotation/index.d.ts +117 -0
  4. package/dist/breakouts/breakout.d.ts +8 -0
  5. package/dist/breakouts/breakout.js +1 -1
  6. package/dist/breakouts/collection.d.ts +5 -0
  7. package/dist/breakouts/edit-lock-error.d.ts +15 -0
  8. package/dist/breakouts/events.d.ts +8 -0
  9. package/dist/breakouts/index.d.ts +5 -0
  10. package/dist/breakouts/index.js +1 -1
  11. package/dist/breakouts/request.d.ts +22 -0
  12. package/dist/breakouts/utils.d.ts +15 -0
  13. package/dist/common/browser-detection.d.ts +9 -0
  14. package/dist/common/collection.d.ts +48 -0
  15. package/dist/common/config.d.ts +2 -0
  16. package/dist/common/errors/captcha-error.d.ts +15 -0
  17. package/dist/common/errors/intent-to-join.d.ts +16 -0
  18. package/dist/common/errors/join-meeting.d.ts +17 -0
  19. package/dist/common/errors/media.d.ts +15 -0
  20. package/dist/common/errors/no-meeting-info.d.ts +14 -0
  21. package/dist/common/errors/parameter.d.ts +15 -0
  22. package/dist/common/errors/password-error.d.ts +15 -0
  23. package/dist/common/errors/permission.d.ts +14 -0
  24. package/dist/common/errors/reclaim-host-role-errors.d.ts +60 -0
  25. package/dist/common/errors/reconnection-in-progress.d.ts +9 -0
  26. package/dist/common/errors/reconnection.d.ts +15 -0
  27. package/dist/common/errors/stats.d.ts +15 -0
  28. package/dist/common/errors/webex-errors.d.ts +93 -0
  29. package/dist/common/errors/webex-meetings-error.d.ts +20 -0
  30. package/dist/common/events/events-scope.d.ts +17 -0
  31. package/dist/common/events/events.d.ts +12 -0
  32. package/dist/common/events/trigger-proxy.d.ts +2 -0
  33. package/dist/common/events/util.d.ts +2 -0
  34. package/dist/common/logs/logger-config.d.ts +2 -0
  35. package/dist/common/logs/logger-proxy.d.ts +2 -0
  36. package/dist/common/logs/request.d.ts +36 -0
  37. package/dist/common/queue.d.ts +34 -0
  38. package/dist/config.d.ts +71 -0
  39. package/dist/constants.d.ts +1072 -0
  40. package/dist/controls-options-manager/constants.d.ts +4 -0
  41. package/dist/controls-options-manager/enums.d.ts +15 -0
  42. package/dist/controls-options-manager/index.d.ts +136 -0
  43. package/dist/controls-options-manager/types.d.ts +43 -0
  44. package/dist/controls-options-manager/util.d.ts +1 -0
  45. package/dist/index.d.ts +7 -0
  46. package/dist/interpretation/collection.d.ts +5 -0
  47. package/dist/interpretation/index.d.ts +5 -0
  48. package/dist/interpretation/index.js +1 -1
  49. package/dist/interpretation/siLanguage.d.ts +5 -0
  50. package/dist/interpretation/siLanguage.js +1 -1
  51. package/dist/locus-info/controlsUtils.d.ts +2 -0
  52. package/dist/locus-info/embeddedAppsUtils.d.ts +2 -0
  53. package/dist/locus-info/fullState.d.ts +2 -0
  54. package/dist/locus-info/hostUtils.d.ts +2 -0
  55. package/dist/locus-info/index.d.ts +322 -0
  56. package/dist/locus-info/infoUtils.d.ts +2 -0
  57. package/dist/locus-info/mediaSharesUtils.d.ts +2 -0
  58. package/dist/locus-info/parser.d.ts +272 -0
  59. package/dist/locus-info/selfUtils.d.ts +2 -0
  60. package/dist/media/index.d.ts +34 -0
  61. package/dist/media/properties.d.ts +93 -0
  62. package/dist/media/util.d.ts +2 -0
  63. package/dist/mediaQualityMetrics/config.d.ts +365 -0
  64. package/dist/meeting/in-meeting-actions.d.ts +167 -0
  65. package/dist/meeting/index.d.ts +1715 -0
  66. package/dist/meeting/locusMediaRequest.d.ts +74 -0
  67. package/dist/meeting/muteState.d.ts +184 -0
  68. package/dist/meeting/request.d.ts +290 -0
  69. package/dist/meeting/request.type.d.ts +11 -0
  70. package/dist/meeting/state.d.ts +9 -0
  71. package/dist/meeting/util.d.ts +103 -0
  72. package/dist/meeting-info/collection.d.ts +20 -0
  73. package/dist/meeting-info/index.d.ts +69 -0
  74. package/dist/meeting-info/meeting-info-v2.d.ts +123 -0
  75. package/dist/meeting-info/request.d.ts +22 -0
  76. package/dist/meeting-info/util.d.ts +2 -0
  77. package/dist/meeting-info/utilv2.d.ts +2 -0
  78. package/dist/meetings/collection.d.ts +40 -0
  79. package/dist/meetings/index.d.ts +378 -0
  80. package/dist/meetings/meetings.types.d.ts +4 -0
  81. package/dist/meetings/request.d.ts +27 -0
  82. package/dist/meetings/util.d.ts +18 -0
  83. package/dist/member/index.d.ts +160 -0
  84. package/dist/member/member.types.d.ts +11 -0
  85. package/dist/member/types.d.ts +32 -0
  86. package/dist/member/util.d.ts +2 -0
  87. package/dist/members/collection.d.ts +29 -0
  88. package/dist/members/index.d.ts +353 -0
  89. package/dist/members/request.d.ts +114 -0
  90. package/dist/members/types.d.ts +25 -0
  91. package/dist/members/util.d.ts +215 -0
  92. package/dist/metrics/constants.d.ts +68 -0
  93. package/dist/metrics/index.d.ts +45 -0
  94. package/dist/multistream/mediaRequestManager.d.ts +118 -0
  95. package/dist/multistream/receiveSlot.d.ts +68 -0
  96. package/dist/multistream/receiveSlotManager.d.ts +56 -0
  97. package/dist/multistream/remoteMedia.d.ts +72 -0
  98. package/dist/multistream/remoteMediaGroup.d.ts +47 -0
  99. package/dist/multistream/remoteMediaManager.d.ts +285 -0
  100. package/dist/multistream/sendSlotManager.d.ts +61 -0
  101. package/dist/networkQualityMonitor/index.d.ts +70 -0
  102. package/dist/personal-meeting-room/index.d.ts +47 -0
  103. package/dist/personal-meeting-room/request.d.ts +14 -0
  104. package/dist/personal-meeting-room/util.d.ts +2 -0
  105. package/dist/reachability/index.d.ts +194 -0
  106. package/dist/reachability/request.d.ts +39 -0
  107. package/dist/reactions/constants.d.ts +3 -0
  108. package/dist/reactions/reactions.d.ts +4 -0
  109. package/dist/reactions/reactions.type.d.ts +52 -0
  110. package/dist/reconnection-manager/index.d.ts +136 -0
  111. package/dist/recording-controller/enums.d.ts +7 -0
  112. package/dist/recording-controller/index.d.ts +207 -0
  113. package/dist/recording-controller/util.d.ts +14 -0
  114. package/dist/roap/index.d.ts +78 -0
  115. package/dist/roap/request.d.ts +41 -0
  116. package/dist/roap/turnDiscovery.d.ts +92 -0
  117. package/dist/rtcMetrics/constants.d.ts +4 -0
  118. package/dist/rtcMetrics/index.d.ts +54 -0
  119. package/dist/statsAnalyzer/global.d.ts +36 -0
  120. package/dist/statsAnalyzer/index.d.ts +201 -0
  121. package/dist/statsAnalyzer/mqaUtil.d.ts +24 -0
  122. package/dist/transcription/index.d.ts +64 -0
  123. package/dist/webinar/collection.d.ts +16 -0
  124. package/dist/webinar/index.d.ts +5 -0
  125. package/dist/webinar/index.js +1 -1
  126. package/package.json +21 -21
@@ -0,0 +1,47 @@
1
+ import { RemoteMedia, RemoteVideoResolution } from './remoteMedia';
2
+ import { MediaRequestManager } from './mediaRequestManager';
3
+ import { CSI, ReceiveSlot } from './receiveSlot';
4
+ type Options = {
5
+ resolution?: RemoteVideoResolution;
6
+ preferLiveVideo?: boolean;
7
+ };
8
+ export declare class RemoteMediaGroup {
9
+ private mediaRequestManager;
10
+ private priority;
11
+ private options;
12
+ private unpinnedRemoteMedia;
13
+ private mediaRequestId?;
14
+ private pinnedRemoteMedia;
15
+ constructor(mediaRequestManager: MediaRequestManager, receiveSlots: ReceiveSlot[], priority: number, commitMediaRequest: boolean, options?: Options);
16
+ /**
17
+ * Gets the array of remote media elements from the group
18
+ *
19
+ * @param {string} filter - 'all' (default) returns both pinned and unpinned
20
+ * @returns {Array<RemoteMedia>}
21
+ */
22
+ getRemoteMedia(filter?: 'all' | 'pinned' | 'unpinned'): RemoteMedia[];
23
+ /**
24
+ * Pins a specific remote media instance to a specfic CSI, so the media will
25
+ * no longer come from active speaker, but from that CSI.
26
+ * If no CSI is given, the current CSI value is used.
27
+ *
28
+ */
29
+ pin(remoteMedia: RemoteMedia, csi?: CSI): void;
30
+ /**
31
+ * Unpins a remote media instance, so that it will again provide media from active speakers
32
+ *
33
+ */
34
+ unpin(remoteMedia: RemoteMedia): void;
35
+ isPinned(remoteMedia: RemoteMedia): boolean;
36
+ private sendActiveSpeakerMediaRequest;
37
+ private cancelActiveSpeakerMediaRequest;
38
+ /**
39
+ * Checks if a given RemoteMedia instance belongs to this group.
40
+ *
41
+ * @param remoteMedia RemoteMedia instance to check
42
+ * @param filter controls which remote media from the group to check
43
+ * @returns true if remote media is found
44
+ */
45
+ includes(remoteMedia: RemoteMedia, filter?: 'all' | 'pinned' | 'unpinned'): boolean;
46
+ }
47
+ export {};
@@ -0,0 +1,285 @@
1
+ import { EventMap } from 'typed-emitter';
2
+ import EventsScope from '../common/events/events-scope';
3
+ import { RemoteMedia, RemoteVideoResolution } from './remoteMedia';
4
+ import { CSI } from './receiveSlot';
5
+ import { ReceiveSlotManager } from './receiveSlotManager';
6
+ import { RemoteMediaGroup } from './remoteMediaGroup';
7
+ import { MediaRequestManager } from './mediaRequestManager';
8
+ export type PaneSize = RemoteVideoResolution;
9
+ export type LayoutId = string;
10
+ export type PaneId = string;
11
+ export type PaneGroupId = string;
12
+ export interface ActiveSpeakerVideoPaneGroup {
13
+ id: PaneGroupId;
14
+ numPanes: number;
15
+ size: PaneSize;
16
+ priority: number;
17
+ }
18
+ export interface MemberVideoPane {
19
+ id: PaneId;
20
+ size: PaneSize;
21
+ csi?: CSI;
22
+ }
23
+ export interface VideoLayout {
24
+ screenShareVideo?: {
25
+ size: PaneSize;
26
+ };
27
+ activeSpeakerVideoPaneGroups?: ActiveSpeakerVideoPaneGroup[];
28
+ memberVideoPanes?: MemberVideoPane[];
29
+ }
30
+ export interface Configuration {
31
+ audio: {
32
+ numOfActiveSpeakerStreams: number;
33
+ numOfScreenShareStreams: number;
34
+ };
35
+ video: {
36
+ preferLiveVideo: boolean;
37
+ initialLayoutId: LayoutId;
38
+ layouts: {
39
+ [key: LayoutId]: VideoLayout;
40
+ };
41
+ };
42
+ }
43
+ /**
44
+ * Default configuration:
45
+ * - uses 3 audio streams
46
+ * - prefers active speakers with live video (e.g. are not audio only or video muted) over active speakers without live video
47
+ * - has a few layouts defined, including 1 that contains remote screen share (ScreenShareView)
48
+ */
49
+ export declare const DefaultConfiguration: Configuration;
50
+ export declare enum Event {
51
+ AudioCreated = "AudioCreated",
52
+ ScreenShareAudioCreated = "ScreenShareAudioCreated",
53
+ VideoLayoutChanged = "VideoLayoutChanged"
54
+ }
55
+ export interface VideoLayoutChangedEventData {
56
+ layoutId: LayoutId;
57
+ activeSpeakerVideoPanes: {
58
+ [key: PaneGroupId]: RemoteMediaGroup;
59
+ };
60
+ memberVideoPanes: {
61
+ [key: PaneId]: RemoteMedia;
62
+ };
63
+ screenShareVideo?: RemoteMedia;
64
+ }
65
+ export interface Events extends EventMap {
66
+ [Event.AudioCreated]: (audio: RemoteMediaGroup) => void;
67
+ [Event.ScreenShareAudioCreated]: (screenShareAudio: RemoteMediaGroup) => void;
68
+ [Event.VideoLayoutChanged]: (data: VideoLayoutChangedEventData) => void;
69
+ }
70
+ /**
71
+ * A helper class that manages all remote audio/video streams in order to achieve a predefined set of layouts.
72
+ * It also creates a fixed number of audio streams and these don't change during the meeting.
73
+ *
74
+ * Things that RemoteMediaManager does:
75
+ * - owns the receive slots (creates them when needed, and re-uses them when switching layouts)
76
+ * - constructs appropriate RemoteMedia and RemoteMediaGroup objects and sends appropriate mediaRequests
77
+ */
78
+ export declare class RemoteMediaManager extends EventsScope {
79
+ private config;
80
+ private started;
81
+ private receiveSlotManager;
82
+ private mediaRequestManagers;
83
+ private currentLayout?;
84
+ private slots;
85
+ private media;
86
+ private receiveSlotAllocations;
87
+ private currentLayoutId?;
88
+ /**
89
+ * Constructor
90
+ *
91
+ * @param {ReceiveSlotManager} receiveSlotManager
92
+ * @param {{audio: MediaRequestManager, video: mediaRequestManagers}} mediaRequestManagers
93
+ * @param {Configuration} config Configuration describing what video layouts to use during the meeting
94
+ */
95
+ constructor(receiveSlotManager: ReceiveSlotManager, mediaRequestManagers: {
96
+ audio: MediaRequestManager;
97
+ video: MediaRequestManager;
98
+ screenShareAudio: MediaRequestManager;
99
+ screenShareVideo: MediaRequestManager;
100
+ }, config?: Configuration);
101
+ /**
102
+ * Checks if configuration is valid, throws an error if it's not
103
+ */
104
+ private checkConfigValidity;
105
+ /**
106
+ * Starts the RemoteMediaManager.
107
+ *
108
+ * @returns {Promise}
109
+ */
110
+ start(): Promise<void>;
111
+ /**
112
+ * Releases all the used resources (like allocated receive slots). This function needs
113
+ * to be called when we leave the meeting, etc.
114
+ */
115
+ stop(): void;
116
+ /**
117
+ * Returns the total number of main video panes required for a given layout
118
+ *
119
+ * @param {VideoLayout} layout
120
+ * @returns {number}
121
+ */
122
+ private getRequiredNumVideoSlotsForLayout;
123
+ /**
124
+ * Allocates the maximum number of panes that any of the configured layouts will require.
125
+ * We do this at the beginning, because it's more efficient (much faster) then allocating receive slots
126
+ * later, after the SDP exchange was done.
127
+ */
128
+ private preallocateVideoReceiveSlots;
129
+ /**
130
+ * Changes the layout (triggers Event.VideoLayoutChanged)
131
+ *
132
+ * @param {LayoutId} layoutId new layout id
133
+ * @returns {Promise}
134
+ */
135
+ setLayout(layoutId: LayoutId): Promise<void>;
136
+ /**
137
+ * Returns the currently selected layout id
138
+ *
139
+ * @returns {LayoutId}
140
+ */
141
+ getLayoutId(): LayoutId | undefined;
142
+ /**
143
+ * sets the preferLiveVideo
144
+ */
145
+ setPreferLiveVideo(preferLiveVideo: boolean): void;
146
+ /**
147
+ * Sets CSIs for multiple RemoteMedia instances belonging to RemoteMediaGroup.
148
+ * For each entry in the remoteMediaCsis array:
149
+ * - if csi is specified, the RemoteMedia instance is pinned to that CSI
150
+ * - if csi is undefined, the RemoteMedia instance is unpinned
151
+ */
152
+ setActiveSpeakerCsis(remoteMediaCsis: {
153
+ remoteMedia: RemoteMedia;
154
+ csi?: number;
155
+ }[]): void;
156
+ /**
157
+ * Creates the audio slots
158
+ */
159
+ private createAudioMedia;
160
+ /**
161
+ * Creates receive slots required for receiving screen share audio and video
162
+ */
163
+ private createScreenShareReceiveSlots;
164
+ /**
165
+ * Creates RemoteMedia objects for screen share
166
+ */
167
+ private createScreenShareAudioMedia;
168
+ /**
169
+ * Goes over all receiver-selected slots and keeps only the ones that are required by a given layout,
170
+ * the rest are all moved to the "unused" list
171
+ */
172
+ private trimReceiverSelectedSlots;
173
+ /**
174
+ * Releases all the "unused" video slots.
175
+ */
176
+ private releaseUnusedVideoSlots;
177
+ /**
178
+ * Allocates receive slots to all active speaker video panes
179
+ * in the current selected layout.
180
+ *
181
+ * Allocation tries to keep the same order of the slots between the previous
182
+ * layout and the new one. Sorting helps making sure that highest priority slots
183
+ * go in the same order in the new layout.
184
+ */
185
+ private allocateSlotsToActiveSpeakerPaneGroups;
186
+ /**
187
+ * Allocates receive slots to all receiver selected video panes
188
+ * in the current selected layout
189
+ */
190
+ private allocateSlotsToReceiverSelectedVideoPaneGroups;
191
+ /**
192
+ * Ensures that we have enough slots for the current layout.
193
+ */
194
+ private refillRequiredSlotsIfNeeded;
195
+ /**
196
+ * Move all active speaker slots to "unused"
197
+ */
198
+ private trimActiveSpeakerSlots;
199
+ /**
200
+ * Logs the state of the receive slots
201
+ */
202
+ private logMainVideoReceiveSlots;
203
+ /** logs main audio slots */
204
+ private logMainAudioReceiveSlots;
205
+ /** logs slides video slots */
206
+ private logSlidesVideoReceiveSlots;
207
+ /** logs slides audio slots */
208
+ private logSlidesAudioReceiveSlots;
209
+ /** Logs all current receive slots */
210
+ logAllReceiveSlots(): void;
211
+ /**
212
+ * Makes sure we have the right number of receive slots created for the current layout
213
+ * and allocates them to the right video panes / pane groups
214
+ *
215
+ * @returns {Promise}
216
+ */
217
+ private updateVideoReceiveSlots;
218
+ /**
219
+ * Creates new RemoteMedia and RemoteMediaGroup objects for the current layout
220
+ * and sends the media requests for all of them.
221
+ */
222
+ private updateVideoRemoteMediaObjects;
223
+ /**
224
+ * Checks if current layout requires a screen share.
225
+ * If it does, it creates new RemoteMediaGroup object for screen share
226
+ * and sends the media requests for it.
227
+ * If it doesn't, it makes sure we clean up any RemoteMediaGroup objects
228
+ * created earlier for screen share (for previous layout).
229
+ */
230
+ private updateScreenShareVideoRemoteMediaObject;
231
+ /**
232
+ * Invalidates all remote media objects belonging to currently selected layout
233
+ */
234
+ private invalidateCurrentRemoteMedia;
235
+ /** emits Event.VideoLayoutChanged */
236
+ private emitVideoLayoutChangedEvent;
237
+ /**
238
+ * Sets a new CSI on a given remote media object
239
+ *
240
+ * @param {RemoteMedia} remoteMedia remote Media object to modify
241
+ * @param {CSI} csi new CSI value, can be null if we want to stop receiving media
242
+ */
243
+ setRemoteVideoCsi(remoteMedia: RemoteMedia, csi: CSI | null): void;
244
+ /**
245
+ * Adds a new member video pane to the currently selected layout.
246
+ *
247
+ * Changes to the layout are lost after a layout change.
248
+ *
249
+ * @param {MemberVideoPane} newPane
250
+ * @returns {Promise<RemoteMedia>}
251
+ */
252
+ addMemberVideoPane(newPane: MemberVideoPane): Promise<RemoteMedia>;
253
+ /**
254
+ * Removes a member video pane from the currently selected layout.
255
+ *
256
+ * Changes to the layout are lost after a layout change.
257
+ *
258
+ * @param {PaneId} paneId pane id of the pane to remove
259
+ * @returns {Promise<void>}
260
+ */
261
+ removeMemberVideoPane(paneId: PaneId): Promise<void>;
262
+ /**
263
+ * Pins an active speaker remote media object to the given CSI value. From that moment
264
+ * onwards the remote media will only play audio/video from that specific CSI until
265
+ * unpinActiveSpeakerVideoPane() is called or current layout is changed.
266
+ *
267
+ * @param {RemoteMedia} remoteMedia remote media object reference
268
+ * @param {CSI} csi CSI value to pin to, if undefined, then current CSI value is used
269
+ */
270
+ pinActiveSpeakerVideoPane(remoteMedia: RemoteMedia, csi?: CSI): void;
271
+ /**
272
+ * Unpins a remote media object from the fixed CSI value it was pinned to.
273
+ *
274
+ * @param {RemoteMedia} remoteMedia remote media object reference
275
+ */
276
+ unpinActiveSpeakerVideoPane(remoteMedia: RemoteMedia): void;
277
+ /**
278
+ * Returns true if a given remote media object belongs to an active speaker group and has been pinned.
279
+ * Throws an error if the remote media object doesn't belong to any active speaker remote media group.
280
+ *
281
+ * @param {RemoteMedia} remoteMedia remote media object
282
+ * @returns {boolean}
283
+ */
284
+ isPinned(remoteMedia: RemoteMedia): boolean;
285
+ }
@@ -0,0 +1,61 @@
1
+ import { SendSlot, MediaType, LocalStream, MultistreamRoapMediaConnection } from '@webex/internal-media-core';
2
+ export default class SendSlotManager {
3
+ private readonly slots;
4
+ private readonly LoggerProxy;
5
+ constructor(LoggerProxy: any);
6
+ /**
7
+ * This method is used to create a sendSlot for the given mediaType and returns the created sendSlot
8
+ * @param {MultistreamRoapMediaConnection} mediaConnection MultistreamRoapMediaConnection for which a sendSlot needs to be created
9
+ * @param {MediaType} mediaType MediaType for which a sendSlot needs to be created (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
10
+ * @param {boolean} active This is optional boolean to set the active state of the sendSlot. Default is true
11
+ * @returns {SendSlot} slot The created sendSlot
12
+ */
13
+ createSlot(mediaConnection: MultistreamRoapMediaConnection, mediaType: MediaType, active?: boolean): SendSlot;
14
+ /**
15
+ * This method is used to retrieve the sendSlot for the given mediaType
16
+ * @param {MediaType} mediaType of which the slot needs to be retrieved
17
+ * @returns {SendSlot}
18
+ */
19
+ getSlot(mediaType: MediaType): SendSlot;
20
+ /**
21
+ * This method publishes the given stream to the sendSlot for the given mediaType
22
+ * @param {MediaType} mediaType MediaType of the sendSlot to which a stream needs to be published (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
23
+ * @param {LocalStream} stream LocalStream to be published
24
+ * @returns {Promise<void>}
25
+ */
26
+ publishStream(mediaType: MediaType, stream: LocalStream): Promise<void>;
27
+ /**
28
+ * This method unpublishes the stream from the sendSlot of the given mediaType
29
+ * @param {MediaType} mediaType MediaType of the sendSlot from which a stream needs to be unpublished (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
30
+ * @returns {Promise<void>}
31
+ */
32
+ unpublishStream(mediaType: MediaType): Promise<void>;
33
+ /**
34
+ * This method is used to set the active state of the sendSlot for the given mediaType
35
+ * @param {MediaType} mediaType The MediaType of the sendSlot for which the active state needs to be set (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
36
+ * @param {boolean} active The boolean to set the active state of the sendSlot. Default is true
37
+ * @returns {void}
38
+ */
39
+ setActive(mediaType: MediaType, active?: boolean): void;
40
+ /**
41
+ * This method is used to set the codec parameters for the sendSlot of the given mediaType
42
+ * @param {MediaType} mediaType MediaType of the sendSlot for which the codec parameters needs to be set (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
43
+ * @param {Object} codecParameters
44
+ * @returns {Promise<void>}
45
+ */
46
+ setCodecParameters(mediaType: MediaType, codecParameters: {
47
+ [key: string]: string | undefined;
48
+ }): Promise<void>;
49
+ /**
50
+ * This method is used to delete the codec parameters for the sendSlot of the given mediaType
51
+ * @param {MediaType} mediaType MediaType of the sendSlot for which the codec parameters needs to be deleted (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
52
+ * @param {Array<String>} parameters Array of keys of the codec parameters to be deleted
53
+ * @returns {Promise<void>}
54
+ */
55
+ deleteCodecParameters(mediaType: MediaType, parameters: string[]): Promise<void>;
56
+ /**
57
+ * This method is used to reset the SendSlotsManager by deleting all the sendSlots
58
+ * @returns {undefined}
59
+ */
60
+ reset(): void;
61
+ }
@@ -0,0 +1,70 @@
1
+ import EventsScope from '../common/events/events-scope';
2
+ /**
3
+ * Meeting - network quality event
4
+ * Emitted on each interval of retrieving stats Analyzer data
5
+ * @event network:quality
6
+ * @type {Object}
7
+ * @property {string} mediaType {video|audio}
8
+ * @property {number} networkQualityScore - value determined in determineUplinkNetworkQuality
9
+ * @memberof NetworkQualityMonitor
10
+ */
11
+ /**
12
+ * NetworkQualityMonitor class that will emit events based on detected quality
13
+ *
14
+ * @class NetworkQualityMonitor
15
+ * @extends {EventsScope}
16
+ */
17
+ export default class NetworkQualityMonitor extends EventsScope {
18
+ config: any;
19
+ frequencyTypes: any;
20
+ indicatorTypes: any;
21
+ mediaType: any;
22
+ networkQualityScore: any;
23
+ networkQualityStatus: any;
24
+ /**
25
+ * Creates a new instance of NetworkQualityMonitor
26
+ * @constructor
27
+ * @public
28
+ * @param {Object} config
29
+ * @property {Object} indicatorTypes - network properties used to evaluate network quality used as constants
30
+ * @property {Object} frequencyTypes - frequency properties used as constants {uplink|send} {downlink|receive}
31
+ * @property {number} networkQualityScore - 0|1 1 is acceptable 0 is bad/unknown
32
+ * @property {Object} networkQualityStatus - hash object based on indicatorTypes and frequencyTypes
33
+ * @property {string} mediaType - audio|video
34
+ */
35
+ constructor(config: any);
36
+ /**
37
+ * emits NETWORK_QUALITY event on meeting with payload of media type and uplinkNetworkQuality score
38
+ *
39
+ * @memberof NetworkQualityMonitor
40
+ * @returns {void}
41
+ */
42
+ emitNetworkQuality(): void;
43
+ /**
44
+ * invokes emitNetworkQuality method resets values back to default
45
+ * @returns {void}
46
+ * @memberof NetworkQualityMonitor
47
+ */
48
+ updateNetworkQualityStatus(): void;
49
+ /**
50
+ * filter data to determine uplink network quality, invoked on same interval as stats analyzer remote-inbout-rtp
51
+ * @param {Object} configObj
52
+ * @param {string} configObj.mediaType {audio|video}
53
+ * @param {RTCStats} configObj.remoteRtpResults RTC stats remote obj
54
+ * @param {Object} configObj.statsAnalyzerCurrentStats statsResults
55
+ * @returns {void}
56
+ * @public
57
+ * @memberof NetworkQualityMonitor
58
+ */
59
+ determineUplinkNetworkQuality({ mediaType, remoteRtpResults, statsAnalyzerCurrentStats, }: {
60
+ mediaType: string;
61
+ remoteRtpResults: any;
62
+ statsAnalyzerCurrentStats: object;
63
+ }): void;
64
+ /**
65
+ * Get the current status of network quaility object - networkQualityStatus
66
+ * @returns {Object}
67
+ * @public
68
+ */
69
+ get networkQualityStats(): any;
70
+ }
@@ -0,0 +1,47 @@
1
+ import { StatelessWebexPlugin } from '@webex/webex-core';
2
+ /**
3
+ * @class PersonalMeetingRoom
4
+ */
5
+ export default class PersonalMeetingRoom extends StatelessWebexPlugin {
6
+ link: any;
7
+ meetingInfo: any;
8
+ name: any;
9
+ personalMeetingRoomRequest: any;
10
+ pmr: any;
11
+ sipUri: any;
12
+ userId: any;
13
+ meetingLink: any;
14
+ number: any;
15
+ namespace: string;
16
+ /**
17
+ *
18
+ * @param {Object} attrs
19
+ * @param {Object} options
20
+ */
21
+ constructor(attrs: any, options: any);
22
+ /**
23
+ * claims a pmr and updates the cached PMR values
24
+ * @param {String} link
25
+ * @param {String} pin
26
+ * @param {Boolean} [preferred] defaults to true to set this claimed PMR as the preferred
27
+ * @returns {Promise}
28
+ * @public
29
+ * @memberof PersonalMeetingRoom
30
+ */
31
+ claim(link: string, pin: string, preferred?: boolean): any;
32
+ /**
33
+ * @param {Object} body the response body from meeting info request
34
+ * @returns {undefined}
35
+ * @private
36
+ * @memberof PersonalMeetingRoom
37
+ */
38
+ private set;
39
+ /**
40
+ * TODO: implement TTL for syncing and caching so to not request again and again
41
+ * @param {Object} options
42
+ * @returns {Promise}
43
+ * @public
44
+ * @memberof PersonalMeetingRoom
45
+ */
46
+ get(): any;
47
+ }
@@ -0,0 +1,14 @@
1
+ import { StatelessWebexPlugin } from '@webex/webex-core';
2
+ /**
3
+ * @class MeetingInfoRequest
4
+ */
5
+ export default class PersonalMeetingRoomRequest extends StatelessWebexPlugin {
6
+ namespace: string;
7
+ /**
8
+ *
9
+ * @param {Object} options with format of {userId, passcode, meetingAddress, preferred}
10
+ * @returns {Promise} returns a promise that resolves/rejects the result of the request
11
+ * @memberof PersonalMeetingRoomRequest
12
+ */
13
+ claimPmr(options: any): any;
14
+ }
@@ -0,0 +1,2 @@
1
+ declare const PersonalMeetingRoomUtil: any;
2
+ export default PersonalMeetingRoomUtil;