@webex/plugin-meetings 3.12.0-next.17 → 3.12.0-next.171
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/.sdd/manifest.json +1312 -0
- package/.sdd/templates/.source.json +30 -0
- package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
- package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
- package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
- package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
- package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
- package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
- package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
- package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
- package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
- package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
- package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
- package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
- package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
- package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
- package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
- package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
- package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
- package/.sdd/templates/component-repo/template-map.json +112 -0
- package/AGENTS.md +135 -0
- package/ai-docs/ARCHITECTURE.md +207 -0
- package/ai-docs/CONTRACTS.md +267 -0
- package/ai-docs/DATA_MODEL.md +64 -0
- package/ai-docs/GETTING_STARTED.md +73 -0
- package/ai-docs/GLOSSARY.md +56 -0
- package/ai-docs/REVIEW_CHECKLIST.md +45 -0
- package/ai-docs/RULES.md +79 -0
- package/ai-docs/SECURITY.md +74 -0
- package/ai-docs/SERVICE_STATE.md +59 -0
- package/ai-docs/SPEC_INDEX.md +85 -0
- package/ai-docs/TEST_INDEX.md +45 -0
- package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
- package/ai-docs/patterns/defensive-error-propagation.md +55 -0
- package/ai-docs/patterns/event-scope-emission.md +46 -0
- package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
- package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
- package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
- package/dist/aiEnableRequest/index.js +15 -2
- package/dist/aiEnableRequest/index.js.map +1 -1
- package/dist/annotation/index.js +2 -2
- 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 +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +37 -10
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +46 -10
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/hashTree/constants.js +4 -1
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1096 -391
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/utils.js +20 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +75 -15
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
- package/dist/interceptors/locusRetry.js +24 -9
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +55 -12
- 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 +4 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +615 -176
- 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/types.js +20 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +15 -2
- 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 +4 -5
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +5 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1684 -835
- 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 +5 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +37 -3
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +12 -5
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +300 -128
- 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 +10 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +30 -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 +7 -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 +62 -15
- 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 +32 -4
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +121 -83
- 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/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/common/errors/webex-errors.d.ts +32 -2
- package/dist/types/config.d.ts +2 -2
- package/dist/types/constants.d.ts +13 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/hashTree/constants.d.ts +1 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +201 -22
- package/dist/types/hashTree/utils.d.ts +7 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +106 -8
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +22 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
- package/dist/types/media/properties.d.ts +6 -2
- package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
- package/dist/types/meeting/index.d.ts +178 -11
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +1 -0
- package/dist/types/meeting/util.d.ts +9 -0
- package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +40 -19
- package/dist/types/meetings/meetings.types.d.ts +15 -0
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +1 -0
- package/dist/types/member/types.d.ts +1 -0
- package/dist/types/member/util.d.ts +9 -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 +6 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
- package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
- 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 +3 -0
- package/dist/webinar/index.js +307 -161
- package/dist/webinar/index.js.map +1 -1
- package/package.json +23 -23
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
- package/src/aiEnableRequest/index.ts +16 -0
- package/src/annotation/ai-docs/annotation-spec.md +236 -0
- package/src/annotation/index.ts +6 -4
- package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
- 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 +2 -2
- package/src/constants.ts +21 -3
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
- package/src/controls-options-manager/index.ts +62 -10
- package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
- package/src/hashTree/constants.ts +7 -0
- package/src/hashTree/hashTreeParser.ts +861 -193
- package/src/hashTree/utils.ts +19 -0
- package/src/index.ts +6 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interceptors/dataChannelAuthToken.ts +88 -12
- package/src/interceptors/locusRetry.ts +26 -5
- package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
- package/src/interpretation/index.ts +65 -10
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
- package/src/locus-info/controlsUtils.ts +3 -1
- package/src/locus-info/index.ts +566 -164
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/types.ts +26 -1
- package/src/media/MediaConnectionAwaiter.ts +21 -4
- package/src/media/ai-docs/media-spec.md +267 -0
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +8 -3
- package/src/meeting/ai-docs/meeting-spec.md +401 -0
- package/src/meeting/in-meeting-actions.ts +8 -0
- package/src/meeting/index.ts +944 -120
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +11 -0
- package/src/meeting/util.ts +51 -7
- package/src/meeting/voicea-meeting.ts +1 -1
- package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
- package/src/meeting-info/meeting-info-v2.ts +11 -4
- package/src/meetings/ai-docs/meetings-spec.md +296 -0
- package/src/meetings/index.ts +200 -80
- package/src/meetings/meetings.types.ts +19 -0
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +117 -4
- package/src/member/ai-docs/member-spec.md +196 -0
- package/src/member/index.ts +10 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +29 -0
- package/src/members/ai-docs/members-spec.md +256 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/ai-docs/metrics-spec.md +185 -0
- package/src/metrics/constants.ts +6 -0
- package/src/multistream/ai-docs/multistream-spec.md +292 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +119 -28
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/multistream/remoteMediaManager.ts +23 -1
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
- package/src/reachability/ai-docs/reachability-spec.md +261 -0
- package/src/reachability/clusterReachability.ts +3 -2
- package/src/reachability/index.ts +47 -16
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/util.ts +36 -0
- package/src/reactions/ai-docs/reactions-spec.md +198 -0
- package/src/reactions/reactions.type.ts +3 -0
- package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
- package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/ai-docs/roap-spec.md +241 -0
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/ai-docs/webinar-spec.md +243 -0
- package/src/webinar/index.ts +216 -38
- package/test/unit/spec/aiEnableRequest/index.ts +86 -0
- package/test/unit/spec/annotation/index.ts +3 -3
- 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 +139 -32
- package/test/unit/spec/hashTree/hashTreeParser.ts +2451 -184
- package/test/unit/spec/hashTree/utils.ts +37 -0
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +196 -0
- package/test/unit/spec/interceptors/locusRetry.ts +234 -5
- package/test/unit/spec/interpretation/index.ts +119 -4
- package/test/unit/spec/locus-info/controlsUtils.js +172 -57
- package/test/unit/spec/locus-info/index.js +1014 -58
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +55 -0
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +23 -23
- package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
- package/test/unit/spec/meeting/index.js +2834 -110
- 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 +12 -0
- package/test/unit/spec/meeting/utils.js +189 -17
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +88 -11
- package/test/unit/spec/meetings/index.js +544 -49
- 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 +7 -0
- package/test/unit/spec/member/util.js +89 -0
- 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 +501 -37
- package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
- package/test/unit/spec/reachability/index.ts +128 -46
- package/test/unit/spec/reachability/util.ts +31 -0
- 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 +332 -31
|
@@ -66,6 +66,7 @@ declare const MemberUtil: {
|
|
|
66
66
|
isDevice: (participant: Participant) => boolean;
|
|
67
67
|
isModeratorAssignmentProhibited: (participant: Participant) => boolean;
|
|
68
68
|
isPresenterAssignmentProhibited: (participant: Participant) => boolean;
|
|
69
|
+
isAttendeeAssignmentProhibited: (participant: Participant) => boolean;
|
|
69
70
|
/**
|
|
70
71
|
* checks to see if the participant id is the same as the passed id
|
|
71
72
|
* there are multiple ids that can be used
|
|
@@ -163,5 +164,13 @@ declare const MemberUtil: {
|
|
|
163
164
|
* @returns {String}
|
|
164
165
|
*/
|
|
165
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[];
|
|
166
175
|
};
|
|
167
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;
|
|
@@ -92,5 +93,10 @@ declare const BEHAVIORAL_METRICS: {
|
|
|
92
93
|
DEPRECATED_DELETE_CODEC_PARAMETERS_USED: string;
|
|
93
94
|
SET_CUSTOM_CODEC_PARAMETERS_USED: string;
|
|
94
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;
|
|
95
101
|
};
|
|
96
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,14 +36,22 @@ 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;
|
|
@@ -51,9 +59,10 @@ export declare class MediaRequestManager {
|
|
|
51
59
|
private sourceUpdateListener;
|
|
52
60
|
private debouncedSourceUpdateListener;
|
|
53
61
|
private trimRequestsToNumOfSources;
|
|
62
|
+
private enableAv1;
|
|
54
63
|
private numTotalSources;
|
|
55
64
|
private numLiveSources;
|
|
56
|
-
constructor(sendMediaRequestsCallback: SendMediaRequestsCallback, options: Options);
|
|
65
|
+
constructor(sendMediaRequestsCallback: SendMediaRequestsCallback, getIngressPayloadTypeCallback: GetIngressPayloadTypeCallback, options: Options);
|
|
57
66
|
setDegradationPreferences(degradationPreferences: DegradationPreferences): void;
|
|
58
67
|
private getDegradedClientRequests;
|
|
59
68
|
/**
|
|
@@ -77,6 +86,14 @@ export declare class MediaRequestManager {
|
|
|
77
86
|
* @returns {number} maxMbps
|
|
78
87
|
*/
|
|
79
88
|
private getH264MaxMbps;
|
|
89
|
+
/**
|
|
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
|
|
93
|
+
*/
|
|
94
|
+
private getAv1EncodingParams;
|
|
95
|
+
private buildH264CodecInfo;
|
|
96
|
+
private buildAv1CodecInfo;
|
|
80
97
|
/** Modifies the passed in clientRequests and makes sure that in total they don't ask
|
|
81
98
|
* for more streams than there are available.
|
|
82
99
|
*
|
|
@@ -42,6 +42,24 @@ export interface Configuration {
|
|
|
42
42
|
};
|
|
43
43
|
namedMediaGroup?: NamedMediaGroup;
|
|
44
44
|
}
|
|
45
|
+
export declare const getRemoteMediaManagerConfigForLogging: (config?: Configuration) => Configuration | {
|
|
46
|
+
video: {
|
|
47
|
+
layouts: {
|
|
48
|
+
count: number;
|
|
49
|
+
initial: {
|
|
50
|
+
id: string;
|
|
51
|
+
definition: VideoLayout;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
preferLiveVideo: boolean;
|
|
55
|
+
initialLayoutId: LayoutId;
|
|
56
|
+
};
|
|
57
|
+
audio: {
|
|
58
|
+
numOfActiveSpeakerStreams: number;
|
|
59
|
+
numOfScreenShareStreams: number;
|
|
60
|
+
};
|
|
61
|
+
namedMediaGroup?: NamedMediaGroup;
|
|
62
|
+
};
|
|
45
63
|
/**
|
|
46
64
|
* Default configuration:
|
|
47
65
|
* - uses 3 audio streams
|
|
@@ -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
|
*
|