@webex/plugin-meetings 3.11.0 → 3.12.0-auth-prejoin-fetch.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/AGENTS.md +9 -0
- package/dist/aiEnableRequest/index.js +197 -0
- package/dist/aiEnableRequest/index.js.map +1 -0
- package/dist/aiEnableRequest/utils.js +36 -0
- package/dist/aiEnableRequest/utils.js.map +1 -0
- package/dist/annotation/index.js +16 -7
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +8 -3
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/events.js +29 -14
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +99 -4
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +49 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +8 -3
- package/dist/config.js.map +1 -1
- package/dist/constants.js +60 -11
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +11 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +67 -29
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.js +91 -0
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/hashTree/constants.js +16 -2
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTree.js +18 -0
- package/dist/hashTree/hashTree.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1655 -538
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/types.js +4 -2
- package/dist/hashTree/types.js.map +1 -1
- package/dist/hashTree/utils.js +52 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/dist/interceptors/constant.js +12 -0
- package/dist/interceptors/constant.js.map +1 -0
- package/dist/interceptors/dataChannelAuthToken.js +350 -0
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -0
- package/dist/interceptors/index.js +7 -0
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/locusRetry.js +23 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interceptors/utils.js +27 -0
- package/dist/interceptors/utils.js.map +1 -0
- package/dist/interpretation/index.js +11 -2
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/interpretation.types.js +7 -0
- package/dist/interpretation/interpretation.types.js.map +1 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +9 -4
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +914 -212
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +36 -5
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/selfUtils.js +1 -0
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/locus-info/types.js +19 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +72 -3
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +8 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +8 -7
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +11 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +2357 -1094
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +229 -82
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +10 -1
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +55 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/util.js +168 -5
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +100 -38
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +466 -174
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +6 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +39 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +116 -18
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +20 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +40 -0
- package/dist/member/util.js.map +1 -1
- package/dist/members/index.js +101 -43
- package/dist/members/index.js.map +1 -1
- package/dist/members/util.js +8 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +12 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/multistream/codec/constants.js +63 -0
- package/dist/multistream/codec/constants.js.map +1 -0
- package/dist/multistream/mediaRequestManager.js +64 -68
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +9 -0
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +11 -0
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +116 -2
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +139 -93
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +2 -0
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/util.js +45 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +0 -1
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/index.js +1 -3
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +8 -1
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/types/aiEnableRequest/index.d.ts +5 -0
- package/dist/types/aiEnableRequest/utils.d.ts +2 -0
- package/dist/types/common/errors/webex-errors.d.ts +32 -2
- package/dist/types/config.d.ts +6 -2
- package/dist/types/constants.d.ts +35 -1
- package/dist/types/controls-options-manager/constants.d.ts +6 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/hashTree/constants.d.ts +3 -0
- package/dist/types/hashTree/hashTree.d.ts +7 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +315 -30
- package/dist/types/hashTree/types.d.ts +3 -0
- package/dist/types/hashTree/utils.d.ts +24 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/interceptors/constant.d.ts +5 -0
- package/dist/types/interceptors/dataChannelAuthToken.d.ts +43 -0
- package/dist/types/interceptors/index.d.ts +2 -1
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interceptors/utils.d.ts +1 -0
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +126 -15
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +28 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +20 -2
- package/dist/types/media/properties.d.ts +8 -3
- package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
- package/dist/types/meeting/index.d.ts +253 -16
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +17 -1
- package/dist/types/meeting/request.type.d.ts +5 -0
- package/dist/types/meeting/util.d.ts +40 -0
- package/dist/types/meeting-info/meeting-info-v2.d.ts +25 -1
- package/dist/types/meetings/index.d.ts +54 -21
- package/dist/types/meetings/meetings.types.d.ts +30 -1
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +2 -0
- package/dist/types/member/types.d.ts +1 -0
- package/dist/types/member/util.d.ts +14 -0
- package/dist/types/members/index.d.ts +15 -2
- package/dist/types/members/util.d.ts +1 -5
- package/dist/types/metrics/constants.d.ts +11 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +20 -26
- package/dist/types/multistream/sendSlotManager.d.ts +23 -1
- package/dist/types/reachability/clusterReachability.d.ts +3 -3
- package/dist/types/reachability/index.d.ts +10 -3
- package/dist/types/reachability/reachability.types.d.ts +7 -0
- package/dist/types/reachability/util.d.ts +17 -0
- package/dist/types/reactions/reactions.type.d.ts +4 -0
- package/dist/types/webinar/utils.d.ts +6 -0
- package/dist/webinar/index.js +585 -164
- package/dist/webinar/index.js.map +1 -1
- package/dist/webinar/utils.js +25 -0
- package/dist/webinar/utils.js.map +1 -0
- package/package.json +24 -23
- package/src/aiEnableRequest/README.md +84 -0
- package/src/aiEnableRequest/index.ts +186 -0
- package/src/aiEnableRequest/utils.ts +25 -0
- package/src/annotation/index.ts +32 -10
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +122 -2
- package/src/common/errors/webex-errors.ts +50 -3
- package/src/config.ts +6 -2
- package/src/constants.ts +49 -3
- package/src/controls-options-manager/constants.ts +14 -1
- package/src/controls-options-manager/index.ts +87 -28
- package/src/controls-options-manager/util.ts +81 -1
- package/src/hashTree/constants.ts +17 -0
- package/src/hashTree/hashTree.ts +17 -0
- package/src/hashTree/hashTreeParser.ts +1482 -361
- package/src/hashTree/types.ts +4 -0
- package/src/hashTree/utils.ts +45 -0
- package/src/index.ts +14 -1
- package/src/interceptors/constant.ts +6 -0
- package/src/interceptors/dataChannelAuthToken.ts +246 -0
- package/src/interceptors/index.ts +2 -1
- package/src/interceptors/locusRetry.ts +25 -4
- package/src/interceptors/utils.ts +16 -0
- package/src/interpretation/index.ts +29 -11
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/controlsUtils.ts +14 -1
- package/src/locus-info/index.ts +976 -203
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/selfUtils.ts +1 -0
- package/src/locus-info/types.ts +33 -1
- package/src/media/MediaConnectionAwaiter.ts +62 -5
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +11 -4
- package/src/meeting/in-meeting-actions.ts +20 -0
- package/src/meeting/index.ts +1314 -178
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +53 -0
- package/src/meeting/request.type.ts +6 -0
- package/src/meeting/util.ts +207 -7
- package/src/meeting-info/meeting-info-v2.ts +83 -21
- package/src/meetings/index.ts +402 -121
- package/src/meetings/meetings.types.ts +36 -1
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +117 -4
- package/src/member/index.ts +20 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +41 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/constants.ts +12 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +117 -76
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/multistream/remoteMediaManager.ts +13 -0
- package/src/multistream/sendSlotManager.ts +97 -3
- package/src/reachability/clusterReachability.ts +3 -2
- package/src/reachability/index.ts +56 -16
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/util.ts +36 -0
- package/src/reactions/reactions.type.ts +4 -0
- package/src/reconnection-manager/index.ts +0 -1
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/index.ts +448 -11
- package/src/webinar/utils.ts +16 -0
- package/test/unit/spec/aiEnableRequest/index.ts +1067 -0
- package/test/unit/spec/aiEnableRequest/utils.ts +130 -0
- package/test/unit/spec/annotation/index.ts +70 -8
- package/test/unit/spec/breakouts/breakout.ts +9 -3
- package/test/unit/spec/breakouts/events.ts +120 -2
- package/test/unit/spec/breakouts/index.ts +223 -3
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/controls-options-manager/index.js +244 -29
- package/test/unit/spec/controls-options-manager/util.js +165 -0
- package/test/unit/spec/hashTree/hashTree.ts +66 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +4528 -171
- package/test/unit/spec/hashTree/utils.ts +125 -1
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +406 -0
- package/test/unit/spec/interceptors/locusRetry.ts +205 -4
- package/test/unit/spec/interceptors/utils.ts +75 -0
- package/test/unit/spec/interpretation/index.ts +26 -4
- package/test/unit/spec/locus-info/controlsUtils.js +200 -56
- package/test/unit/spec/locus-info/index.js +1861 -149
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +96 -1
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +35 -26
- package/test/unit/spec/meeting/in-meeting-actions.ts +12 -2
- package/test/unit/spec/meeting/index.js +3766 -417
- package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
- package/test/unit/spec/meeting/muteState.js +81 -0
- package/test/unit/spec/meeting/request.js +82 -0
- package/test/unit/spec/meeting/utils.js +595 -27
- package/test/unit/spec/meeting-info/meetinginfov2.js +286 -10
- package/test/unit/spec/meetings/index.js +1400 -78
- package/test/unit/spec/meetings/request.js +141 -0
- package/test/unit/spec/meetings/utils.js +402 -51
- package/test/unit/spec/member/index.js +35 -4
- package/test/unit/spec/member/util.js +154 -27
- package/test/unit/spec/members/index.js +216 -0
- package/test/unit/spec/members/request.js +37 -1
- package/test/unit/spec/members/utils.js +63 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +503 -122
- package/test/unit/spec/multistream/remoteMediaManager.ts +30 -0
- package/test/unit/spec/multistream/sendSlotManager.ts +135 -36
- package/test/unit/spec/reachability/index.ts +151 -46
- package/test/unit/spec/reachability/util.ts +31 -0
- package/test/unit/spec/reconnection-manager/index.js +4 -8
- package/test/unit/spec/recording-controller/index.js +9 -8
- package/test/unit/spec/roap/turnDiscovery.ts +20 -0
- package/test/unit/spec/webinar/index.ts +837 -39
- package/test/unit/spec/webinar/utils.ts +39 -0
|
@@ -8,7 +8,7 @@ import 'webrtc-adapter';
|
|
|
8
8
|
import { LOCUSEVENT, DESTINATION_TYPE } from '../constants';
|
|
9
9
|
import { CallStateForMetrics } from '../meeting';
|
|
10
10
|
import Reachability from '../reachability';
|
|
11
|
-
import { INoiseReductionEffect, IVirtualBackgroundEffect, MeetingRegistrationStatus } from './meetings.types';
|
|
11
|
+
import { FetchSitePreferencesMeViaSiteOptions, INoiseReductionEffect, IVirtualBackgroundEffect, MeetingRegistrationStatus, PrefetchedMeetingInfo, PrefetchMeetingInfoParams, SitePreferencesResponse } from './meetings.types';
|
|
12
12
|
import { HashTreeMessage } from '../hashTree/hashTreeParser';
|
|
13
13
|
export type LocusEvent = {
|
|
14
14
|
eventType: LOCUSEVENT;
|
|
@@ -95,6 +95,8 @@ export default class Meetings extends WebexPlugin {
|
|
|
95
95
|
preferredWebexSite: any;
|
|
96
96
|
reachability: Reachability;
|
|
97
97
|
registered: any;
|
|
98
|
+
registrationPromise: Promise<void>;
|
|
99
|
+
unregistrationPromise: Promise<void>;
|
|
98
100
|
request: any;
|
|
99
101
|
geoHintInfo: any;
|
|
100
102
|
meetingInfo: any;
|
|
@@ -102,6 +104,14 @@ export default class Meetings extends WebexPlugin {
|
|
|
102
104
|
breakoutLocusForHandleLater: any;
|
|
103
105
|
namespace: string;
|
|
104
106
|
registrationStatus: MeetingRegistrationStatus;
|
|
107
|
+
/**
|
|
108
|
+
* Emits a metric describing how well this browser runs WebAssembly, used to spot browsers
|
|
109
|
+
* where real-time WASM effects (e.g. background noise removal) run poorly.
|
|
110
|
+
*
|
|
111
|
+
* @param {string} correlationId - correlation id to report the result against
|
|
112
|
+
* @returns {void}
|
|
113
|
+
*/
|
|
114
|
+
private emitWasmRuntimePerformance;
|
|
105
115
|
/**
|
|
106
116
|
* Initializes the Meetings Plugin
|
|
107
117
|
* @constructor
|
|
@@ -150,7 +160,7 @@ export default class Meetings extends WebexPlugin {
|
|
|
150
160
|
*/
|
|
151
161
|
private handleLocusEvent;
|
|
152
162
|
/**
|
|
153
|
-
* handles locus events through mercury that are not roap
|
|
163
|
+
* handles locus events through mercury that are not roap or approval request events
|
|
154
164
|
* @param {Object} envelope
|
|
155
165
|
* @param {Object} envelope.data
|
|
156
166
|
* @param {String} envelope.data.eventType
|
|
@@ -209,22 +219,6 @@ export default class Meetings extends WebexPlugin {
|
|
|
209
219
|
* @returns {undefined}
|
|
210
220
|
*/
|
|
211
221
|
private _toggleAdhocMeetings;
|
|
212
|
-
/**
|
|
213
|
-
* API to toggle TCP reachability, needs to be called before webex.meetings.register()
|
|
214
|
-
* @param {Boolean} newValue
|
|
215
|
-
* @private
|
|
216
|
-
* @memberof Meetings
|
|
217
|
-
* @returns {undefined}
|
|
218
|
-
*/
|
|
219
|
-
private _toggleTcpReachability;
|
|
220
|
-
/**
|
|
221
|
-
* API to toggle TLS reachability, needs to be called before webex.meetings.register()
|
|
222
|
-
* @param {Boolean} newValue
|
|
223
|
-
* @private
|
|
224
|
-
* @memberof Meetings
|
|
225
|
-
* @returns {undefined}
|
|
226
|
-
*/
|
|
227
|
-
private _toggleTlsReachability;
|
|
228
222
|
/**
|
|
229
223
|
* API to toggle backend ipv6 native support config, needs to be called before webex.meetings.register()
|
|
230
224
|
*
|
|
@@ -252,6 +246,16 @@ export default class Meetings extends WebexPlugin {
|
|
|
252
246
|
* @returns {undefined}
|
|
253
247
|
*/
|
|
254
248
|
private _toggleEnableAudioTwccForMultistream;
|
|
249
|
+
/**
|
|
250
|
+
* API to toggle AV1 codec support for video slides in multistream,
|
|
251
|
+
* needs to be called before webex.meetings.joinWithMedia()
|
|
252
|
+
*
|
|
253
|
+
* @param {Boolean} newValue
|
|
254
|
+
* @private
|
|
255
|
+
* @memberof Meetings
|
|
256
|
+
* @returns {undefined}
|
|
257
|
+
*/
|
|
258
|
+
private _toggleEnableAv1SlidesSupport;
|
|
255
259
|
/**
|
|
256
260
|
* API to toggle stopping ICE Candidates Gathering after first relay candidate,
|
|
257
261
|
* needs to be called before webex.meetings.joinWithMedia()
|
|
@@ -287,7 +291,7 @@ export default class Meetings extends WebexPlugin {
|
|
|
287
291
|
* @public
|
|
288
292
|
* @memberof Meetings
|
|
289
293
|
*/
|
|
290
|
-
unregister():
|
|
294
|
+
unregister(): Promise<void>;
|
|
291
295
|
/**
|
|
292
296
|
* Creates a noise reduction effect
|
|
293
297
|
*
|
|
@@ -366,6 +370,23 @@ export default class Meetings extends WebexPlugin {
|
|
|
366
370
|
* @memberof Meetings
|
|
367
371
|
*/
|
|
368
372
|
getPersonalMeetingRoom(): any;
|
|
373
|
+
/**
|
|
374
|
+
* Fetches site preferences for the provided Webex site, or the preferred Webex site.
|
|
375
|
+
* This is used to determine capabilities of the site, such as whether scheduling a webinar is supported.
|
|
376
|
+
*
|
|
377
|
+
* @param {object} [options]
|
|
378
|
+
* @param {string} [options.siteUrl] - Webex site URL. Defaults to preferredWebexSite, for example "cisco.webex.com".
|
|
379
|
+
* @param {string} [options.siteName] - Site name query override. Defaults to the site name derived from siteUrl, for example "cisco" for "cisco.webex.com".
|
|
380
|
+
* @param {SitePreferenceSelectOption[]} [options.selectOptions] - Preference sections to fetch. Defaults to 'scheduling'.
|
|
381
|
+
* @returns {Promise<SitePreferencesResponse>} site preferences response body
|
|
382
|
+
* @throws {ParameterError}
|
|
383
|
+
* @public
|
|
384
|
+
* @memberof Meetings
|
|
385
|
+
* @example
|
|
386
|
+
* const preferences = await webex.meetings.fetchSitePreferencesMeViaSite();
|
|
387
|
+
* const supportScheduleWebinar = preferences?.scheduling?.supportScheduleWebinar;
|
|
388
|
+
*/
|
|
389
|
+
fetchSitePreferencesMeViaSite(options?: FetchSitePreferencesMeViaSiteOptions): Promise<SitePreferencesResponse>;
|
|
369
390
|
/**
|
|
370
391
|
* Returns basic information about a meeting that exists or
|
|
371
392
|
* used to exist in the MeetingCollection
|
|
@@ -408,11 +429,21 @@ export default class Meetings extends WebexPlugin {
|
|
|
408
429
|
* @param {String} [meetingLookupUrl] - meeting info prefetch url
|
|
409
430
|
* @param {string} sessionCorrelationId - the optional specified sessionCorrelationId (callStateForMetrics.sessionCorrelationId) can be provided instead
|
|
410
431
|
* @param {String} classificationId - If space support classification, it will provide it while start instant meeting
|
|
432
|
+
* @param {PrefetchedMeetingInfo} prefetchedMeetingInfo - meeting information requested before creating the Meeting
|
|
411
433
|
* @returns {Promise<Meeting>} A new Meeting.
|
|
412
434
|
* @public
|
|
413
435
|
* @memberof Meetings
|
|
414
436
|
*/
|
|
415
|
-
create(destination: string, type?: DESTINATION_TYPE, useRandomDelayForInfo?: boolean, infoExtraParams?: {}, correlationId?: string, failOnMissingMeetingInfo?: boolean, callStateForMetrics?: CallStateForMetrics, meetingInfo?: any, meetingLookupUrl?: any, sessionCorrelationId?: string, classificationId?: string): any;
|
|
437
|
+
create(destination: string, type?: DESTINATION_TYPE, useRandomDelayForInfo?: boolean, infoExtraParams?: {}, correlationId?: string, failOnMissingMeetingInfo?: boolean, callStateForMetrics?: CallStateForMetrics, meetingInfo?: any, meetingLookupUrl?: any, sessionCorrelationId?: string, classificationId?: string, prefetchedMeetingInfo?: PrefetchedMeetingInfo): any;
|
|
438
|
+
/**
|
|
439
|
+
* Starts meeting-information retrieval without creating or registering a Meeting.
|
|
440
|
+
*
|
|
441
|
+
* @param {PrefetchMeetingInfoParams} params request destination and metric identifiers
|
|
442
|
+
* @returns {PrefetchedMeetingInfo} opaque handle consumed later by create() or Meeting
|
|
443
|
+
* @public
|
|
444
|
+
* @memberof Meetings
|
|
445
|
+
*/
|
|
446
|
+
prefetchMeetingInfo({ destination, type, extraParams, preJoinContext, classificationId, }: PrefetchMeetingInfoParams): PrefetchedMeetingInfo;
|
|
416
447
|
/**
|
|
417
448
|
* Enable static meeting links for given conversation url.
|
|
418
449
|
*
|
|
@@ -447,6 +478,7 @@ export default class Meetings extends WebexPlugin {
|
|
|
447
478
|
* @param {Object} [meetingInfo] - Pre-fetched complete meeting info
|
|
448
479
|
* @param {String} [meetingLookupUrl] - meeting info prefetch url
|
|
449
480
|
* @param {String} classificationId see create()
|
|
481
|
+
* @param {PrefetchedMeetingInfo} prefetchedMeetingInfo - meeting information requested before creating the Meeting
|
|
450
482
|
* @returns {Promise} a new meeting instance complete with meeting info and destination
|
|
451
483
|
* @private
|
|
452
484
|
* @memberof Meetings
|
|
@@ -475,8 +507,9 @@ export default class Meetings extends WebexPlugin {
|
|
|
475
507
|
* @public
|
|
476
508
|
* @memberof Meetings
|
|
477
509
|
*/
|
|
478
|
-
syncMeetings({ keepOnlyLocusMeetings }?: {
|
|
510
|
+
syncMeetings({ keepOnlyLocusMeetings, skipHashTreeSync, }?: {
|
|
479
511
|
keepOnlyLocusMeetings?: boolean;
|
|
512
|
+
skipHashTreeSync?: boolean;
|
|
480
513
|
}): Promise<void>;
|
|
481
514
|
/**
|
|
482
515
|
* sort out locus array for initial creating
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { NoiseReductionEffectOptions, VirtualBackgroundEffectOptions } from '@webex/media-helpers';
|
|
2
|
-
import
|
|
2
|
+
import type MeetingInfoV2 from '../meeting-info/meeting-info-v2';
|
|
3
|
+
import type { PreJoinContext } from '../meeting-info/meeting-info-v2';
|
|
4
|
+
import { DESTINATION_TYPE, Enum } from '../constants';
|
|
3
5
|
type INoiseReductionEffect = Omit<NoiseReductionEffectOptions, 'authToken' | 'workletProcessorUrl' | 'legacyProcessorUrl'>;
|
|
4
6
|
type IVirtualBackgroundEffect = Omit<VirtualBackgroundEffectOptions, 'authToken'>;
|
|
5
7
|
export type { INoiseReductionEffect, IVirtualBackgroundEffect };
|
|
@@ -19,3 +21,30 @@ export type MeetingRegistrationStatus = {
|
|
|
19
21
|
mercuryConnect: boolean;
|
|
20
22
|
checkH264Support: boolean;
|
|
21
23
|
};
|
|
24
|
+
export declare enum SitePreferenceSelectOption {
|
|
25
|
+
SCHEDULING = "scheduling"
|
|
26
|
+
}
|
|
27
|
+
export type FetchSitePreferencesMeViaSiteOptions = {
|
|
28
|
+
siteUrl?: string;
|
|
29
|
+
siteName?: string;
|
|
30
|
+
selectOptions?: SitePreferenceSelectOption[];
|
|
31
|
+
};
|
|
32
|
+
export declare const DEFAULT_SITE_PREFERENCE_SELECT_OPTIONS: SitePreferenceSelectOption[];
|
|
33
|
+
export type SitePreferencesResponse = {
|
|
34
|
+
scheduling?: {
|
|
35
|
+
supportScheduleWebinar?: boolean;
|
|
36
|
+
webinarWebLink?: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type PrefetchMeetingInfoParams = {
|
|
40
|
+
destination: any;
|
|
41
|
+
type?: DESTINATION_TYPE;
|
|
42
|
+
extraParams?: Record<string, any>;
|
|
43
|
+
preJoinContext: PreJoinContext;
|
|
44
|
+
classificationId?: string;
|
|
45
|
+
};
|
|
46
|
+
export type PrefetchedMeetingInfo = {
|
|
47
|
+
request: Promise<any>;
|
|
48
|
+
provider: MeetingInfoV2;
|
|
49
|
+
extraParams: Record<string, any>;
|
|
50
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StatelessWebexPlugin } from '@webex/webex-core';
|
|
2
|
+
import { type FetchSitePreferencesMeViaSiteOptions, type SitePreferencesResponse } from './meetings.types';
|
|
2
3
|
/**
|
|
3
4
|
* @class MeetingRequest
|
|
4
5
|
*/
|
|
@@ -18,6 +19,19 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
18
19
|
* @returns {Promise<object>} getMeetingPreferences
|
|
19
20
|
*/
|
|
20
21
|
getMeetingPreferences(): any;
|
|
22
|
+
/**
|
|
23
|
+
* Fetches site preferences from a given site given a select option and a siteUrl with an optional siteName. If siteName is not provided, it will be derived from the siteUrl. If siteUrl is not provided, it will throw an error. If selectOptions is not provided, it will default to scheduling.
|
|
24
|
+
*
|
|
25
|
+
* @param {object} [options]
|
|
26
|
+
* @param {string} [options.siteUrl] - Webex site URL, for example "cisco.webex.com".
|
|
27
|
+
* @param {string} [options.siteName] - Site name query override. Defaults to the site name derived from options.siteUrl, e.g., "cisco".
|
|
28
|
+
* @param {SitePreferenceSelectOption[]} [options.selectOptions] - Preference sections to fetch. Defaults to 'scheduling'.
|
|
29
|
+
* @returns {Promise<SitePreferencesResponse>} site preferences response body
|
|
30
|
+
* @throws {ParameterError}
|
|
31
|
+
* @public
|
|
32
|
+
* @memberof MeetingRequest
|
|
33
|
+
*/
|
|
34
|
+
fetchSitePreferencesMeViaSite(options?: FetchSitePreferencesMeViaSiteOptions): Promise<SitePreferencesResponse>;
|
|
21
35
|
/**
|
|
22
36
|
* Fetches indivdual locus rather then getting all at once
|
|
23
37
|
* @param {object} responseBody determine the locus and fetch them if a remoteUrl is given
|
|
@@ -6,6 +6,7 @@ export type MemberId = string;
|
|
|
6
6
|
export default class Member {
|
|
7
7
|
associatedUser: MemberId | null;
|
|
8
8
|
associatedUsers: Set<MemberId>;
|
|
9
|
+
canApproveAIEnablement: boolean;
|
|
9
10
|
canReclaimHost: boolean;
|
|
10
11
|
id: MemberId;
|
|
11
12
|
isAudioMuted: any;
|
|
@@ -19,6 +20,7 @@ export default class Member {
|
|
|
19
20
|
isModerator: any;
|
|
20
21
|
isModeratorAssignmentProhibited: any;
|
|
21
22
|
isPresenterAssignmentProhibited: any;
|
|
23
|
+
isAttendeeAssignmentProhibited: any;
|
|
22
24
|
isMutable: any;
|
|
23
25
|
isNotAdmitted: any;
|
|
24
26
|
isRecording: any;
|
|
@@ -5,6 +5,11 @@ declare const MemberUtil: {
|
|
|
5
5
|
* @returns {Boolean}
|
|
6
6
|
*/
|
|
7
7
|
canReclaimHost: (participant: any) => any;
|
|
8
|
+
/**
|
|
9
|
+
* @param {Object} participant - The locus participant object.
|
|
10
|
+
* @returns {Boolean}
|
|
11
|
+
*/
|
|
12
|
+
canApproveAIEnablement: (participant: any) => boolean;
|
|
8
13
|
/**
|
|
9
14
|
* @param {Object} participant - The locus participant object.
|
|
10
15
|
* @returns {[ServerRoleShape]}
|
|
@@ -61,6 +66,7 @@ declare const MemberUtil: {
|
|
|
61
66
|
isDevice: (participant: Participant) => boolean;
|
|
62
67
|
isModeratorAssignmentProhibited: (participant: Participant) => boolean;
|
|
63
68
|
isPresenterAssignmentProhibited: (participant: Participant) => boolean;
|
|
69
|
+
isAttendeeAssignmentProhibited: (participant: Participant) => boolean;
|
|
64
70
|
/**
|
|
65
71
|
* checks to see if the participant id is the same as the passed id
|
|
66
72
|
* there are multiple ids that can be used
|
|
@@ -158,5 +164,13 @@ declare const MemberUtil: {
|
|
|
158
164
|
* @returns {String}
|
|
159
165
|
*/
|
|
160
166
|
extractPairedWithParticipantUrl: (participant: Participant) => ParticipantUrl | undefined;
|
|
167
|
+
/**
|
|
168
|
+
* Collects all CSIs reported for a participant across all their devices,
|
|
169
|
+
* looking at both the top-level `csis` array and any `mediaSessions[].csi` values.
|
|
170
|
+
*
|
|
171
|
+
* @param {Object} participant - The locus participant object.
|
|
172
|
+
* @returns {Array<number>} unique CSIs for this participant
|
|
173
|
+
*/
|
|
174
|
+
extractCsis: (participant: Participant) => number[];
|
|
161
175
|
};
|
|
162
176
|
export default MemberUtil;
|
|
@@ -23,6 +23,14 @@ export default class Members extends StatelessWebexPlugin {
|
|
|
23
23
|
recordingId: any;
|
|
24
24
|
selfId: any;
|
|
25
25
|
type: any;
|
|
26
|
+
/**
|
|
27
|
+
* Map of CSI -> memberId that previously used the CSI in a Locus update.
|
|
28
|
+
* Keyed by CSI so findMemberByCsi can resolve it in O(1).
|
|
29
|
+
* Kept here (rather than on each Member) so it survives members being removed
|
|
30
|
+
* and re-added (e.g. when entering/leaving a breakout session).
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
private memberIdByHistoryCsi;
|
|
26
34
|
namespace: string;
|
|
27
35
|
/**
|
|
28
36
|
*
|
|
@@ -313,11 +321,13 @@ export default class Members extends StatelessWebexPlugin {
|
|
|
313
321
|
* Transfers the host to another member
|
|
314
322
|
* @param {String} memberId
|
|
315
323
|
* @param {boolean} [moderator] default true
|
|
324
|
+
* @param {String} [breakoutLocusUrl] when provided, the request is sent against this locus url
|
|
325
|
+
* (i.e. the breakout session's locus) instead of the main session's locus url
|
|
316
326
|
* @returns {Promise}
|
|
317
327
|
* @public
|
|
318
328
|
* @memberof Members
|
|
319
329
|
*/
|
|
320
|
-
transferHostToMember(memberId: string, moderator?: boolean): any;
|
|
330
|
+
transferHostToMember(memberId: string, moderator?: boolean, breakoutLocusUrl?: string): any;
|
|
321
331
|
/**
|
|
322
332
|
* Sends DTMF tones for the PSTN member of a meeting
|
|
323
333
|
* @param {String} tones a string of one or more DTMF tones to send
|
|
@@ -327,7 +337,10 @@ export default class Members extends StatelessWebexPlugin {
|
|
|
327
337
|
* @memberof Members
|
|
328
338
|
*/
|
|
329
339
|
sendDialPadKey(tones?: string, memberId?: string): any;
|
|
330
|
-
/** Finds a member that has any device with a csi matching provided value
|
|
340
|
+
/** Finds a member that has any device with a csi matching provided value.
|
|
341
|
+
* Falls back to the `memberIdByHistoryCsi` map so that a CSI a member used in
|
|
342
|
+
* a previous Locus update can still be resolved even if it is no longer
|
|
343
|
+
* present in `participant.devices[].csis`.
|
|
331
344
|
*
|
|
332
345
|
* @param {number} csi
|
|
333
346
|
* @returns {Member}
|
|
@@ -188,11 +188,7 @@ declare const MembersUtil: {
|
|
|
188
188
|
getTransferHostToMemberRequestParams: (options: any) => {
|
|
189
189
|
method: string;
|
|
190
190
|
uri: string;
|
|
191
|
-
body:
|
|
192
|
-
role: {
|
|
193
|
-
moderator: any;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
191
|
+
body: Record<string, any>;
|
|
196
192
|
};
|
|
197
193
|
genderateSendDTMFOptions: (url: any, tones: any, memberId: any, locusUrl: any) => {
|
|
198
194
|
url: any;
|
|
@@ -9,6 +9,7 @@ declare const BEHAVIORAL_METRICS: {
|
|
|
9
9
|
ADD_MEDIA_SUCCESS: string;
|
|
10
10
|
ADD_MEDIA_FAILURE: string;
|
|
11
11
|
ADD_MEDIA_RETRY: string;
|
|
12
|
+
LOCUS_MEDIA_REQUEST_RETRY: string;
|
|
12
13
|
ROAP_MERCURY_EVENT_RECEIVED: string;
|
|
13
14
|
CONNECTION_SUCCESS: string;
|
|
14
15
|
CONNECTION_FAILURE: string;
|
|
@@ -87,5 +88,15 @@ declare const BEHAVIORAL_METRICS: {
|
|
|
87
88
|
MEDIA_ISSUE_DETECTED: string;
|
|
88
89
|
LOCUS_CLASSIC_VS_HASH_TREE_MISMATCH: string;
|
|
89
90
|
LOCUS_HASH_TREE_UNSUPPORTED_OPERATION: string;
|
|
91
|
+
MEDIA_STILL_NOT_CONNECTED: string;
|
|
92
|
+
DEPRECATED_SET_CODEC_PARAMETERS_USED: string;
|
|
93
|
+
DEPRECATED_DELETE_CODEC_PARAMETERS_USED: string;
|
|
94
|
+
SET_CUSTOM_CODEC_PARAMETERS_USED: string;
|
|
95
|
+
MARK_CUSTOM_CODEC_PARAMETERS_FOR_DELETION_USED: string;
|
|
96
|
+
HASH_TREE_SYNC_FAILURE: string;
|
|
97
|
+
HASH_TREE_HEARTBEAT_WATCHDOG_EXPIRED: string;
|
|
98
|
+
HASH_TREE_EMPTY_LOCUS_STATE_ELEMENTS: string;
|
|
99
|
+
DESTROY_MEETING_WHILE_SUSPENDED: string;
|
|
100
|
+
WASM_RUNTIME_PERFORMANCE: string;
|
|
90
101
|
};
|
|
91
102
|
export { BEHAVIORAL_METRICS as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AV1EncodingParams, SupportedResolution } from '@webex/internal-media-core';
|
|
2
|
+
export declare const AV1_CODEC_PARAMETERS: Record<SupportedResolution, AV1EncodingParams>;
|
|
3
|
+
export declare const H264_CODEC_PARAMETERS: {
|
|
4
|
+
maxFs: number;
|
|
5
|
+
maxFps: number;
|
|
6
|
+
maxMbps: number;
|
|
7
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StreamRequest, NamedMediaGroup } from '@webex/internal-media-core';
|
|
1
|
+
import { StreamRequest, NamedMediaGroup, MediaType, MediaCodecMimeType } from '@webex/internal-media-core';
|
|
2
2
|
import { ReceiveSlot } from './receiveSlot';
|
|
3
3
|
export interface ActiveSpeakerPolicyInfo {
|
|
4
4
|
policy: 'active-speaker';
|
|
@@ -36,43 +36,35 @@ type DegradationPreferences = {
|
|
|
36
36
|
maxMacroblocksLimit: number;
|
|
37
37
|
};
|
|
38
38
|
type SendMediaRequestsCallback = (streamRequests: StreamRequest[]) => void;
|
|
39
|
-
type
|
|
40
|
-
type
|
|
39
|
+
type GetIngressPayloadTypeCallback = (mediaType: MediaType, codecMimeType: MediaCodecMimeType) => number | undefined;
|
|
40
|
+
type AudioMediaRequestManagerOptions = {
|
|
41
41
|
degradationPreferences: DegradationPreferences;
|
|
42
|
-
kind:
|
|
42
|
+
kind: 'audio';
|
|
43
43
|
trimRequestsToNumOfSources: boolean;
|
|
44
44
|
};
|
|
45
|
+
type VideoMediaRequestManagerOptions = {
|
|
46
|
+
degradationPreferences: DegradationPreferences;
|
|
47
|
+
kind: 'video';
|
|
48
|
+
trimRequestsToNumOfSources: boolean;
|
|
49
|
+
enableAv1?: boolean;
|
|
50
|
+
};
|
|
51
|
+
type Options = AudioMediaRequestManagerOptions | VideoMediaRequestManagerOptions;
|
|
45
52
|
export declare class MediaRequestManager {
|
|
46
53
|
private sendMediaRequestsCallback;
|
|
54
|
+
private getIngressPayloadTypeCallback;
|
|
47
55
|
private kind;
|
|
48
56
|
private counter;
|
|
49
57
|
private clientRequests;
|
|
50
58
|
private degradationPreferences;
|
|
51
59
|
private sourceUpdateListener;
|
|
52
60
|
private debouncedSourceUpdateListener;
|
|
53
|
-
private previousStreamRequests;
|
|
54
61
|
private trimRequestsToNumOfSources;
|
|
62
|
+
private enableAv1;
|
|
55
63
|
private numTotalSources;
|
|
56
64
|
private numLiveSources;
|
|
57
|
-
constructor(sendMediaRequestsCallback: SendMediaRequestsCallback, options: Options);
|
|
65
|
+
constructor(sendMediaRequestsCallback: SendMediaRequestsCallback, getIngressPayloadTypeCallback: GetIngressPayloadTypeCallback, options: Options);
|
|
58
66
|
setDegradationPreferences(degradationPreferences: DegradationPreferences): void;
|
|
59
67
|
private getDegradedClientRequests;
|
|
60
|
-
/**
|
|
61
|
-
* Returns true if two stream requests are the same, false otherwise.
|
|
62
|
-
*
|
|
63
|
-
* @param {StreamRequest} streamRequestA - Stream request A for comparison.
|
|
64
|
-
* @param {StreamRequest} streamRequestB - Stream request B for comparison.
|
|
65
|
-
* @returns {boolean} - Whether they are equal.
|
|
66
|
-
*/
|
|
67
|
-
isEqual(streamRequestA: StreamRequest, streamRequestB: StreamRequest): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Compares new stream requests to previous ones and determines
|
|
70
|
-
* if they are the same.
|
|
71
|
-
*
|
|
72
|
-
* @param {StreamRequest[]} newRequests - Array with new requests.
|
|
73
|
-
* @returns {boolean} - True if they are equal, false otherwise.
|
|
74
|
-
*/
|
|
75
|
-
private checkIsNewRequestsEqualToPrev;
|
|
76
68
|
/**
|
|
77
69
|
* Returns the maxPayloadBitsPerSecond per Stream
|
|
78
70
|
*
|
|
@@ -95,11 +87,13 @@ export declare class MediaRequestManager {
|
|
|
95
87
|
*/
|
|
96
88
|
private getH264MaxMbps;
|
|
97
89
|
/**
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* @returns {
|
|
90
|
+
* Returns the AV1 encoding parameters for a media request
|
|
91
|
+
* @param mediaRequest - The media request to get the AV1 encoding parameters for
|
|
92
|
+
* @returns {AV1EncodingParams} The AV1 encoding parameters
|
|
101
93
|
*/
|
|
102
|
-
|
|
94
|
+
private getAv1EncodingParams;
|
|
95
|
+
private buildH264CodecInfo;
|
|
96
|
+
private buildAv1CodecInfo;
|
|
103
97
|
/** Modifies the passed in clientRequests and makes sure that in total they don't ask
|
|
104
98
|
* for more streams than there are available.
|
|
105
99
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SendSlot, MediaType, LocalStream, MultistreamRoapMediaConnection, NamedMediaGroup, StreamState } from '@webex/internal-media-core';
|
|
1
|
+
import { SendSlot, MediaType, LocalStream, MultistreamRoapMediaConnection, NamedMediaGroup, StreamState, MediaCodecMimeType, CodecParameters } from '@webex/internal-media-core';
|
|
2
2
|
/**
|
|
3
3
|
* This class is used to manage the sendSlots for the given media types.
|
|
4
4
|
*/
|
|
@@ -69,6 +69,8 @@ export default class SendSlotManager {
|
|
|
69
69
|
*/
|
|
70
70
|
setActive(mediaType: MediaType, active?: boolean): void;
|
|
71
71
|
/**
|
|
72
|
+
* @deprecated Use {@link setCustomCodecParameters} instead, which requires specifying the codec MIME type.
|
|
73
|
+
*
|
|
72
74
|
* This method is used to set the codec parameters for the sendSlot of the given mediaType
|
|
73
75
|
* @param {MediaType} mediaType MediaType of the sendSlot for which the codec parameters needs to be set (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
|
|
74
76
|
* @param {Object} codecParameters
|
|
@@ -78,12 +80,32 @@ export default class SendSlotManager {
|
|
|
78
80
|
[key: string]: string | undefined;
|
|
79
81
|
}): Promise<void>;
|
|
80
82
|
/**
|
|
83
|
+
* @deprecated Use {@link markCustomCodecParametersForDeletion} instead, which requires specifying the codec MIME type.
|
|
84
|
+
*
|
|
81
85
|
* This method is used to delete the codec parameters for the sendSlot of the given mediaType
|
|
82
86
|
* @param {MediaType} mediaType MediaType of the sendSlot for which the codec parameters needs to be deleted (AUDIO_MAIN/VIDEO_MAIN/AUDIO_SLIDES/VIDEO_SLIDES)
|
|
83
87
|
* @param {Array<String>} parameters Array of keys of the codec parameters to be deleted
|
|
84
88
|
* @returns {Promise<void>}
|
|
85
89
|
*/
|
|
86
90
|
deleteCodecParameters(mediaType: MediaType, parameters: string[]): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* Sets custom codec parameters for the sendSlot of the given mediaType, scoped to a specific codec MIME type.
|
|
93
|
+
* Delegates to WCME's setCustomCodecParameters API.
|
|
94
|
+
* @param {MediaType} mediaType MediaType of the sendSlot
|
|
95
|
+
* @param {MediaCodecMimeType} codecMimeType The codec MIME type to apply parameters to (e.g. OPUS, H264, AV1)
|
|
96
|
+
* @param {CodecParameters} parameters Key-value pairs of codec parameters to set
|
|
97
|
+
* @returns {Promise<void>}
|
|
98
|
+
*/
|
|
99
|
+
setCustomCodecParameters(mediaType: MediaType, codecMimeType: MediaCodecMimeType, parameters: CodecParameters): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Marks custom codec parameters for deletion on the sendSlot of the given mediaType, scoped to a specific codec MIME type.
|
|
102
|
+
* Delegates to WCME's markCustomCodecParametersForDeletion API.
|
|
103
|
+
* @param {MediaType} mediaType MediaType of the sendSlot
|
|
104
|
+
* @param {MediaCodecMimeType} codecMimeType The codec MIME type whose parameters should be deleted (e.g. OPUS, H264, AV1)
|
|
105
|
+
* @param {string[]} parameters Array of parameter keys to delete
|
|
106
|
+
* @returns {Promise<void>}
|
|
107
|
+
*/
|
|
108
|
+
markCustomCodecParametersForDeletion(mediaType: MediaType, codecMimeType: MediaCodecMimeType, parameters: string[]): Promise<void>;
|
|
87
109
|
/**
|
|
88
110
|
* This method is used to reset the SendSlotsManager by deleting all the sendSlots
|
|
89
111
|
* @returns {undefined}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ClusterNode } from './request';
|
|
2
2
|
import EventsScope from '../common/events/events-scope';
|
|
3
3
|
import { Enum } from '../constants';
|
|
4
|
-
import { ClusterReachabilityResult, NatType } from './reachability.types';
|
|
4
|
+
import { ClusterReachabilityResult, NatType, Protocol } from './reachability.types';
|
|
5
5
|
export type ResultEventData = {
|
|
6
|
-
protocol:
|
|
6
|
+
protocol: Protocol;
|
|
7
7
|
result: 'reachable' | 'unreachable' | 'untested';
|
|
8
8
|
latencyInMilliseconds: number;
|
|
9
9
|
clientMediaIPs?: string[];
|
|
10
10
|
};
|
|
11
11
|
export type ClientMediaIpsUpdatedEventData = {
|
|
12
|
-
protocol:
|
|
12
|
+
protocol: Protocol;
|
|
13
13
|
clientMediaIPs: string[];
|
|
14
14
|
};
|
|
15
15
|
export type NatTypeUpdatedEventData = {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Defer } from '@webex/common';
|
|
5
5
|
import { IP_VERSION } from '../constants';
|
|
6
6
|
import ReachabilityRequest, { ClusterList } from './request';
|
|
7
|
-
import { ClusterReachabilityResult, ClientMediaPreferences, ReachabilityMetrics, ReachabilityReportV0, ReachabilityReportV1, ReachabilityResults, ReachabilityResultsForBackend, GetClustersTrigger, NatType } from './reachability.types';
|
|
7
|
+
import { ClusterReachabilityResult, ClientMediaPreferences, ReachabilityMetrics, ReachabilityReportV0, ReachabilityReportV1, ReachabilityResults, ReachabilityResultsForBackend, GetClustersTrigger, NatType, Protocol } from './reachability.types';
|
|
8
8
|
import { ClusterReachability } from './clusterReachability';
|
|
9
9
|
import EventsScope from '../common/events/events-scope';
|
|
10
10
|
/**
|
|
@@ -145,13 +145,20 @@ export default class Reachability extends EventsScope {
|
|
|
145
145
|
* Returns true only if ALL protocols (UDP, TCP and TLS) have been tested and none
|
|
146
146
|
* of the media clusters where reachable with any of the protocols. This is done
|
|
147
147
|
* irrespective of the config, so for example:
|
|
148
|
-
* if config.meetings.
|
|
148
|
+
* if config.meetings.enableReachabilityChecks disables TLS,
|
|
149
149
|
* it will return false, because TLS reachability won't be tested,
|
|
150
150
|
* so we can't say for sure that media backend is unreachable over TLS.
|
|
151
151
|
*
|
|
152
152
|
* @returns {boolean}
|
|
153
153
|
*/
|
|
154
154
|
isWebexMediaBackendUnreachable(): Promise<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* Checks if any cluster is reachable via the given protocol based on stored reachability results.
|
|
157
|
+
*
|
|
158
|
+
* @param {string} protocol - the protocol to check ('udp', 'tcp', or 'xtls')
|
|
159
|
+
* @returns {Promise<boolean>} true if at least one cluster has a 'reachable' result for the given protocol
|
|
160
|
+
*/
|
|
161
|
+
isAnyClusterReachableViaProtocol(protocol: Protocol): Promise<boolean>;
|
|
155
162
|
/**
|
|
156
163
|
* Get list of all unreachable clusters
|
|
157
164
|
* @returns {array} Unreachable clusters
|
|
@@ -209,7 +216,7 @@ export default class Reachability extends EventsScope {
|
|
|
209
216
|
*/
|
|
210
217
|
protected getStatistics(results: Array<ClusterReachabilityResult & {
|
|
211
218
|
isVideoMesh: boolean;
|
|
212
|
-
}>, protocol:
|
|
219
|
+
}>, protocol: Protocol, isVideoMesh: boolean): {
|
|
213
220
|
min: number;
|
|
214
221
|
max: number;
|
|
215
222
|
average: number;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { IP_VERSION, Enum } from '../constants';
|
|
2
2
|
export type Protocol = 'udp' | 'tcp' | 'xtls';
|
|
3
|
+
export type ResolvedReachabilityProtocols = {
|
|
4
|
+
udp: boolean;
|
|
5
|
+
tcp: boolean;
|
|
6
|
+
tls: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type ReachabilityProtocolConfig = Partial<Omit<ResolvedReachabilityProtocols, 'udp'>>;
|
|
9
|
+
export type EnableReachabilityChecksConfig = boolean | ReachabilityProtocolConfig;
|
|
3
10
|
/**
|
|
4
11
|
* Events emitted by ReachabilityPeerConnection
|
|
5
12
|
*/
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
import { EnableReachabilityChecksConfig, ResolvedReachabilityProtocols } from './reachability.types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves `enableReachabilityChecks` into explicit per-protocol flags.
|
|
4
|
+
* Defaults to all protocols enabled when not configured.
|
|
5
|
+
* UDP is always tested unless reachability is disabled entirely (`false`).
|
|
6
|
+
*
|
|
7
|
+
* @param {EnableReachabilityChecksConfig} enabled value of config.meetings.enableReachabilityChecks
|
|
8
|
+
* @returns {ResolvedReachabilityProtocols} resolved per-protocol flags
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveReachabilityProtocols(enabled?: EnableReachabilityChecksConfig): ResolvedReachabilityProtocols;
|
|
11
|
+
/**
|
|
12
|
+
* Whether any reachability protocol is enabled.
|
|
13
|
+
*
|
|
14
|
+
* @param {EnableReachabilityChecksConfig} config value of config.meetings.enableReachabilityChecks
|
|
15
|
+
* @returns {boolean} true if any protocol is enabled
|
|
16
|
+
*/
|
|
17
|
+
export declare function isReachabilityEnabled(config?: EnableReachabilityChecksConfig): boolean;
|
|
1
18
|
/**
|
|
2
19
|
* Converts a stun url to a turn url
|
|
3
20
|
*
|
|
@@ -32,6 +32,7 @@ export declare enum SkinToneType {
|
|
|
32
32
|
dark = "dark"
|
|
33
33
|
}
|
|
34
34
|
export type Sender = {
|
|
35
|
+
displayName: string;
|
|
35
36
|
participantId: string;
|
|
36
37
|
};
|
|
37
38
|
export type ProcessedReaction = {
|
|
@@ -48,5 +49,8 @@ type RelayEventData = {
|
|
|
48
49
|
};
|
|
49
50
|
export type RelayEvent = {
|
|
50
51
|
data: RelayEventData;
|
|
52
|
+
headers?: {
|
|
53
|
+
route?: string;
|
|
54
|
+
};
|
|
51
55
|
};
|
|
52
56
|
export {};
|