@webex/plugin-meetings 3.12.0-next.19 → 3.12.0-next.191
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 +208 -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/assets/README.md +28 -0
- package/assets/e2ee-0.0.1.js +2 -0
- package/assets/e2ee-0.0.1.wasm +0 -0
- package/dist/aiEnableRequest/index.js +15 -2
- package/dist/aiEnableRequest/index.js.map +1 -1
- package/dist/annotation/index.js +55 -19
- package/dist/annotation/index.js.map +1 -1
- package/dist/assets/e2ee-0.0.1.js +2 -0
- package/dist/assets/e2ee-0.0.1.wasm +0 -0
- 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 +128 -7
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +54 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/config.js +3 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +39 -11
- 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 +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +58 -16
- 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 +229 -166
- 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 +1850 -961
- 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 +42 -4
- 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 +304 -129
- 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/multistream/sendSlotManager.js +11 -1
- package/dist/multistream/sendSlotManager.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/annotation/index.d.ts +19 -0
- package/dist/types/common/errors/webex-errors.d.ts +36 -2
- package/dist/types/config.d.ts +3 -2
- package/dist/types/constants.d.ts +15 -2
- 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 +4 -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 +66 -49
- 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 +217 -16
- 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 +12 -1
- 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/multistream/sendSlotManager.d.ts +5 -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 +3 -0
- package/dist/webinar/index.js +441 -252
- package/dist/webinar/index.js.map +1 -1
- package/package.json +26 -24
- 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 +61 -29
- 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 +145 -3
- package/src/common/errors/webex-errors.ts +56 -3
- package/src/config.ts +7 -3
- package/src/constants.ts +23 -4
- 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 +7 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interceptors/dataChannelAuthToken.ts +59 -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 +229 -196
- 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 +404 -0
- package/src/meeting/in-meeting-actions.ts +8 -0
- package/src/meeting/index.ts +1093 -251
- 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 +53 -9
- 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 +202 -81
- 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 +295 -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/multistream/sendSlotManager.ts +15 -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 +247 -89
- package/test/unit/spec/aiEnableRequest/index.ts +86 -0
- package/test/unit/spec/annotation/index.ts +214 -182
- 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 +336 -15
- 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 +2360 -239
- package/test/unit/spec/hashTree/utils.ts +37 -0
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +179 -1
- 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 +479 -17
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +26 -26
- package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
- package/test/unit/spec/meeting/index.js +3601 -536
- 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 +205 -19
- 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 +549 -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/multistream/sendSlotManager.ts +30 -2
- 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 +935 -466
|
@@ -2,89 +2,106 @@ export interface MediaConnectionAwaiterProps {
|
|
|
2
2
|
webrtcMediaConnection: any;
|
|
3
3
|
correlationId: string;
|
|
4
4
|
}
|
|
5
|
+
export interface FailureResult {
|
|
6
|
+
iceConnected: boolean;
|
|
7
|
+
iceConnectedAtLeastOnce: boolean;
|
|
8
|
+
}
|
|
5
9
|
/**
|
|
6
|
-
*
|
|
10
|
+
* Waits for ICE and DTLS connectivity using explicit lifecycle states.
|
|
7
11
|
*/
|
|
8
12
|
export default class MediaConnectionAwaiter {
|
|
9
|
-
private
|
|
10
|
-
private
|
|
13
|
+
private props;
|
|
14
|
+
private state;
|
|
15
|
+
private timer?;
|
|
16
|
+
private iceConnectedAtLeastOnce;
|
|
11
17
|
private defer;
|
|
12
|
-
private retried;
|
|
13
|
-
private iceConnected;
|
|
14
|
-
private correlationId;
|
|
15
|
-
private onTimeoutCallback;
|
|
16
|
-
private peerConnectionStateCallback;
|
|
17
|
-
private iceConnectionStateCallback;
|
|
18
|
-
private iceGatheringStateCallback;
|
|
19
18
|
/**
|
|
20
|
-
* @param {MediaConnectionAwaiterProps}
|
|
19
|
+
* @param {MediaConnectionAwaiterProps} props
|
|
21
20
|
*/
|
|
22
|
-
constructor(
|
|
21
|
+
constructor(props: MediaConnectionAwaiterProps);
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @returns {boolean}
|
|
23
|
+
* Registers listeners and starts the wait once, settling terminal connections immediately.
|
|
24
|
+
* @returns {Promise<void>} Rejects with FailureResult on failure
|
|
27
25
|
*/
|
|
28
|
-
|
|
26
|
+
waitForMediaConnectionConnected(): Promise<void>;
|
|
29
27
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @
|
|
28
|
+
* Applies a transition to a new state and owns its deadline or terminal settlement.
|
|
29
|
+
* @param {EnteredState} next - State to enter; an active wait cannot return to idle
|
|
30
|
+
* @param {string} reason - Trigger or reason for the transition
|
|
31
|
+
* @returns {void}
|
|
33
32
|
*/
|
|
34
|
-
private
|
|
33
|
+
private enter;
|
|
35
34
|
/**
|
|
36
|
-
* Returns
|
|
37
|
-
*
|
|
35
|
+
* Returns whether the promise has settled.
|
|
38
36
|
* @returns {boolean}
|
|
39
37
|
*/
|
|
40
|
-
private
|
|
38
|
+
private isTerminal;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the current state only if it owns a connection deadline.
|
|
41
|
+
* @returns {ActiveState | undefined}
|
|
42
|
+
*/
|
|
43
|
+
private getActiveState;
|
|
44
|
+
/**
|
|
45
|
+
* Logs current browser state and transitions when connectivity or phase changes.
|
|
46
|
+
* @param {string} trigger - Callback or operation that triggered evaluation
|
|
47
|
+
* @returns {boolean} Whether a state transition occurred
|
|
48
|
+
*/
|
|
49
|
+
private evaluate;
|
|
41
50
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
51
|
+
* Listener for peer connection state changes.
|
|
44
52
|
* @returns {void}
|
|
45
53
|
*/
|
|
46
|
-
|
|
54
|
+
peerConnectionStateHandler: () => void;
|
|
47
55
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
56
|
+
* Listener for ICE connection state changes.
|
|
50
57
|
* @returns {void}
|
|
51
58
|
*/
|
|
52
|
-
|
|
59
|
+
iceConnectionStateHandler: () => void;
|
|
53
60
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
61
|
+
* Restarts only an unchanged ICE phase when gathering completes.
|
|
56
62
|
* @returns {void}
|
|
57
63
|
*/
|
|
58
|
-
|
|
64
|
+
iceGatheringStateHandler: () => void;
|
|
59
65
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
66
|
+
* Rechecks connectivity before applying the deadline or the ICE gathering retry.
|
|
62
67
|
* @returns {void}
|
|
63
68
|
*/
|
|
64
|
-
|
|
69
|
+
onTimeout: () => void;
|
|
65
70
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
71
|
+
* Arms an active phase's deadline and logs every start or restart.
|
|
72
|
+
* @param {ActiveState} state - Active state whose deadline is being started
|
|
73
|
+
* @param {string} reason - Why the deadline is being started or restarted
|
|
68
74
|
* @returns {void}
|
|
69
75
|
*/
|
|
70
|
-
|
|
76
|
+
private armTimer;
|
|
71
77
|
/**
|
|
72
|
-
*
|
|
73
|
-
* issues where browser doesn't update the RTCPeerConnection's iceConnectionState or connectionState
|
|
74
|
-
*
|
|
78
|
+
* Releases the deadline and registered listeners on either terminal transition.
|
|
75
79
|
* @returns {void}
|
|
76
80
|
*/
|
|
77
|
-
|
|
81
|
+
private teardown;
|
|
78
82
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
83
|
+
* Registers each callback once with a stable function reference.
|
|
81
84
|
* @returns {void}
|
|
82
85
|
*/
|
|
83
|
-
|
|
86
|
+
private registerCallbacks;
|
|
84
87
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* @returns {Promise}
|
|
88
|
+
* Removes callbacks when the wait reaches a terminal state.
|
|
89
|
+
* @returns {void}
|
|
88
90
|
*/
|
|
89
|
-
|
|
91
|
+
private unregisterCallbacks;
|
|
92
|
+
/**
|
|
93
|
+
* Returns whether ICE gathering has completed.
|
|
94
|
+
* @returns {boolean}
|
|
95
|
+
*/
|
|
96
|
+
private isIceGatheringCompleted;
|
|
97
|
+
/**
|
|
98
|
+
* Captures current and historical ICE connectivity for failures and metrics.
|
|
99
|
+
* @returns {FailureResult}
|
|
100
|
+
*/
|
|
101
|
+
private getConnectivity;
|
|
102
|
+
/**
|
|
103
|
+
* Sends connectivity diagnostics when a deadline expires.
|
|
104
|
+
* @returns {Promise<void>}
|
|
105
|
+
*/
|
|
106
|
+
private sendMetric;
|
|
90
107
|
}
|
|
@@ -26,6 +26,7 @@ export default class MediaProperties {
|
|
|
26
26
|
shareAudioStream?: LocalSystemAudioStream;
|
|
27
27
|
videoDeviceId: any;
|
|
28
28
|
videoStream?: LocalCameraStream;
|
|
29
|
+
srtpCipher: string | undefined;
|
|
29
30
|
namespace: string;
|
|
30
31
|
mediaIssueCounters: {
|
|
31
32
|
[key: string]: number;
|
|
@@ -147,8 +148,11 @@ export default class MediaProperties {
|
|
|
147
148
|
*
|
|
148
149
|
* @param {string} issueType
|
|
149
150
|
* @param {string} issueSubType
|
|
150
|
-
* @param {
|
|
151
|
+
* @param {Object} metadata
|
|
151
152
|
* @returns {void}
|
|
152
153
|
*/
|
|
153
|
-
sendMediaIssueMetric(issueType: string, issueSubType: string,
|
|
154
|
+
sendMediaIssueMetric(issueType: string, issueSubType: string, metadata: {
|
|
155
|
+
correlationId: string;
|
|
156
|
+
isMultistream: boolean;
|
|
157
|
+
}): void;
|
|
154
158
|
}
|
|
@@ -115,6 +115,8 @@ interface IInMeetingActions {
|
|
|
115
115
|
canDisablePollingQA?: boolean;
|
|
116
116
|
canAttendeeRequestAiAssistantEnabled?: boolean;
|
|
117
117
|
isAttendeeRequestAiAssistantDeclinedAll?: boolean;
|
|
118
|
+
isAnonymizeDisplayNamesEnabled?: boolean;
|
|
119
|
+
canViewTheParticipantList?: boolean;
|
|
118
120
|
}
|
|
119
121
|
/**
|
|
120
122
|
* @class InMeetingActions
|
|
@@ -230,6 +232,8 @@ export default class InMeetingActions implements IInMeetingActions {
|
|
|
230
232
|
canDisablePollingQA: any;
|
|
231
233
|
canAttendeeRequestAiAssistantEnabled: any;
|
|
232
234
|
isAttendeeRequestAiAssistantDeclinedAll: any;
|
|
235
|
+
isAnonymizeDisplayNamesEnabled: any;
|
|
236
|
+
canViewTheParticipantList: any;
|
|
233
237
|
/**
|
|
234
238
|
* Returns all meeting action options
|
|
235
239
|
* @returns {Object}
|
|
@@ -5,6 +5,8 @@ import type { ClientEvent as RawClientEvent } from '@webex/event-dictionary-ts';
|
|
|
5
5
|
import { MediaType, StatsAnalyzer, NetworkQualityMonitor, StatsMonitor } from '@webex/internal-media-core';
|
|
6
6
|
import { DataChannelTokenType } from '@webex/internal-plugin-llm';
|
|
7
7
|
import { LocalStream, LocalCameraStream, LocalDisplayStream, LocalSystemAudioStream, LocalMicrophoneStream } from '@webex/media-helpers';
|
|
8
|
+
import { type VoiceaChannel } from '@webex/internal-plugin-voicea';
|
|
9
|
+
import type { MetricEventMeetingJoinPhase } from '@webex/internal-plugin-metrics/src/metrics.types';
|
|
8
10
|
import Roap, { type TurnDiscoverySkipReason } from '../roap/index';
|
|
9
11
|
import { type TurnServerInfo } from '../roap/types';
|
|
10
12
|
import { type BundlePolicy } from '../media';
|
|
@@ -16,7 +18,7 @@ import { DESTINATION_TYPE, NETWORK_STATUS } from '../constants';
|
|
|
16
18
|
import { ReceiveSlotManager } from '../multistream/receiveSlotManager';
|
|
17
19
|
import { MediaRequestManager } from '../multistream/mediaRequestManager';
|
|
18
20
|
import { Configuration as RemoteMediaManagerConfiguration, RemoteMediaManager } from '../multistream/remoteMediaManager';
|
|
19
|
-
import {
|
|
21
|
+
import { SkinToneType } from '../reactions/reactions.type';
|
|
20
22
|
import InMeetingActions from './in-meeting-actions';
|
|
21
23
|
import RecordingController from '../recording-controller';
|
|
22
24
|
import ControlsOptionsManager from '../controls-options-manager';
|
|
@@ -88,6 +90,7 @@ export type CallStateForMetrics = {
|
|
|
88
90
|
userNameInput?: string;
|
|
89
91
|
emailInput?: string;
|
|
90
92
|
pstnCorrelationId?: string;
|
|
93
|
+
meetingJoinPhase?: MetricEventMeetingJoinPhase;
|
|
91
94
|
};
|
|
92
95
|
export declare const MEDIA_UPDATE_TYPE: {
|
|
93
96
|
TRANSCODED_MEDIA_CONNECTION: string;
|
|
@@ -374,7 +377,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
374
377
|
webinar: any;
|
|
375
378
|
conversationUrl: string;
|
|
376
379
|
callStateForMetrics: CallStateForMetrics;
|
|
377
|
-
destination: string;
|
|
380
|
+
destination: string | LocusDTO;
|
|
378
381
|
destinationType: DESTINATION_TYPE;
|
|
379
382
|
deviceUrl: string;
|
|
380
383
|
hostId: string;
|
|
@@ -412,6 +415,8 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
412
415
|
floorGrantPending: boolean;
|
|
413
416
|
hasJoinedOnce: boolean;
|
|
414
417
|
hasWebsocketConnected: boolean;
|
|
418
|
+
private mercuryOnlineHandler?;
|
|
419
|
+
private mercuryOfflineHandler?;
|
|
415
420
|
inMeetingActions: InMeetingActions;
|
|
416
421
|
isLocalShareLive: boolean;
|
|
417
422
|
isRoapInProgress: boolean;
|
|
@@ -422,6 +427,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
422
427
|
joinedWith?: any;
|
|
423
428
|
selfId?: string;
|
|
424
429
|
roles: any[];
|
|
430
|
+
canNotViewTheParticipantList?: boolean;
|
|
425
431
|
locusMediaRequest?: LocusMediaRequest;
|
|
426
432
|
mediaProperties: MediaProperties;
|
|
427
433
|
mediaRequestManagers: {
|
|
@@ -488,16 +494,25 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
488
494
|
turnDiscoverySkippedReason: TurnDiscoverySkipReason;
|
|
489
495
|
turnServerUsed: boolean;
|
|
490
496
|
areVoiceaEventsSetup: boolean;
|
|
497
|
+
/**
|
|
498
|
+
* Returns the initial transcription object shape.
|
|
499
|
+
* Used by constructor and reset paths to ensure consistent initialization.
|
|
500
|
+
* @private
|
|
501
|
+
* @returns {Transcription}
|
|
502
|
+
*/
|
|
503
|
+
private getInitialTranscription;
|
|
491
504
|
isMoveToInProgress: boolean;
|
|
492
505
|
registrationIdStatus: string;
|
|
493
506
|
brbState: BrbState;
|
|
507
|
+
private emittedBreakoutJoinResponseMoveIds;
|
|
508
|
+
private promisesWaitingForPropUpdate;
|
|
494
509
|
voiceaListenerCallbacks: object;
|
|
495
510
|
private addMediaData;
|
|
496
511
|
private sendSlotManager;
|
|
497
512
|
private deferSDPAnswer?;
|
|
498
513
|
private sdpResponseTimer?;
|
|
499
514
|
private hasMediaConnectionConnectedAtLeastOnce;
|
|
500
|
-
private joinWithMediaRetryInfo
|
|
515
|
+
private joinWithMediaRetryInfo;
|
|
501
516
|
private connectionStateHandler?;
|
|
502
517
|
private iceCandidateErrors;
|
|
503
518
|
private iceCandidatesCount;
|
|
@@ -506,6 +521,19 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
506
521
|
private logUploadIntervalIndex;
|
|
507
522
|
private mediaServerIp;
|
|
508
523
|
private llmHealthCheckTimer?;
|
|
524
|
+
/**
|
|
525
|
+
* The LLM channel owned by this meeting for datachannel communication.
|
|
526
|
+
* Created in updateLLMConnection, cleaned up in cleanupLLMConneciton.
|
|
527
|
+
*/
|
|
528
|
+
private llmChannel?;
|
|
529
|
+
/**
|
|
530
|
+
* The Voicea channel for transcription/captions, bound to this meeting's LLM channel.
|
|
531
|
+
*/
|
|
532
|
+
voiceaChannel?: VoiceaChannel;
|
|
533
|
+
/**
|
|
534
|
+
* Pending datachannel token saved from join response, used when creating the LLM channel.
|
|
535
|
+
*/
|
|
536
|
+
private _pendingDatachannelToken?;
|
|
509
537
|
/**
|
|
510
538
|
* @param {Object} attrs
|
|
511
539
|
* @param {Object} options
|
|
@@ -514,6 +542,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
514
542
|
* @memberof Meeting
|
|
515
543
|
*/
|
|
516
544
|
constructor(attrs: any, options: object, callback: (meeting: Meeting) => void);
|
|
545
|
+
/**
|
|
546
|
+
* Get the ingress payload type for a given media type and codec mime type
|
|
547
|
+
* @param {MediaType} mediaType - The media type
|
|
548
|
+
* @param {MediaCodecMimeType} codecMimeType - The codec mime type
|
|
549
|
+
* @returns {number | undefined} - The ingress payload type
|
|
550
|
+
* @private
|
|
551
|
+
* @memberof Meeting
|
|
552
|
+
*/
|
|
553
|
+
private getIngressPayloadTypeCallback;
|
|
517
554
|
/**
|
|
518
555
|
* returns meeting is joined
|
|
519
556
|
* @private
|
|
@@ -696,6 +733,40 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
696
733
|
* @returns {Promise}
|
|
697
734
|
*/
|
|
698
735
|
postMetrics(eventName: ClientEvent['name']): void;
|
|
736
|
+
/**
|
|
737
|
+
* Handles the LLM state-update message that resulted from a Locus /sync. Records the LLM arrival
|
|
738
|
+
* time (the milestone that gates client.locus.sync.complete - the metric is emitted only for LLM
|
|
739
|
+
* flows) and then tries to complete the metric.
|
|
740
|
+
* @param {string} meetingId meeting id
|
|
741
|
+
* @param {string} trackingId sync tracking id echoed back on the LLM message
|
|
742
|
+
* @returns {void}
|
|
743
|
+
* @private
|
|
744
|
+
* @memberof Meeting
|
|
745
|
+
*/
|
|
746
|
+
private onLocusSyncLlmMessage;
|
|
747
|
+
/**
|
|
748
|
+
* Attempts to complete the Locus sync latency metric and emit client.locus.sync.complete. The
|
|
749
|
+
* metric is emitted only once BOTH the /sync response and the resulting LLM message have arrived
|
|
750
|
+
* (in either order); until then the record is kept so the missing milestone can still land. Both
|
|
751
|
+
* trigger points (the LLM message handler and the /sync response timestamp) call this, so the
|
|
752
|
+
* metric fires as soon as the second milestone is in.
|
|
753
|
+
* @param {string} meetingId meeting id
|
|
754
|
+
* @param {string} trackingId sync tracking id used to match the pending record
|
|
755
|
+
* @returns {void}
|
|
756
|
+
* @private
|
|
757
|
+
* @memberof Meeting
|
|
758
|
+
*/
|
|
759
|
+
private tryCompleteLocusSyncLatency;
|
|
760
|
+
/**
|
|
761
|
+
* Submits the client.locus.sync.complete Call Analyzer event for a completed Locus sync latency
|
|
762
|
+
* measurement.
|
|
763
|
+
* @param {string} meetingId meeting id
|
|
764
|
+
* @param {object} completed completed sync latency payload from the metrics plugin
|
|
765
|
+
* @returns {void}
|
|
766
|
+
* @private
|
|
767
|
+
* @memberof Meeting
|
|
768
|
+
*/
|
|
769
|
+
private emitLocusSyncCompleteMetric;
|
|
699
770
|
/**
|
|
700
771
|
* Proxy function for all the listener set ups
|
|
701
772
|
* @returns {undefined}
|
|
@@ -970,7 +1041,12 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
970
1041
|
*/
|
|
971
1042
|
mute(memberId: string, mute?: boolean): any;
|
|
972
1043
|
/**
|
|
973
|
-
* Transfer the moderator role to another eligible member
|
|
1044
|
+
* Transfer the moderator role to another eligible member.
|
|
1045
|
+
*
|
|
1046
|
+
* If the target member is currently joined in the current session, the request is
|
|
1047
|
+
* sent against the current locus. Otherwise, we search the breakout sessions and,
|
|
1048
|
+
* when the member is found in one, we send the request against that breakout
|
|
1049
|
+
* session's locus url instead.
|
|
974
1050
|
* @param {String} memberId
|
|
975
1051
|
* @param {Boolean} moderator
|
|
976
1052
|
* @returns {Promise} see #members.transferHostToMember
|
|
@@ -1051,6 +1127,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1051
1127
|
* @memberof Meeting
|
|
1052
1128
|
*/
|
|
1053
1129
|
setSipUri(sipUri: string): void;
|
|
1130
|
+
/**
|
|
1131
|
+
* After initial locus setup, refreshes destination with synced locus data and optionally
|
|
1132
|
+
* performs deferred meeting info fetch when initial locus was incomplete.
|
|
1133
|
+
* @param {LocusDTO} locus
|
|
1134
|
+
* @returns {void}
|
|
1135
|
+
*/
|
|
1136
|
+
finalizeMeetingAfterInitialLocusSetup(locus: LocusDTO): Promise<void>;
|
|
1054
1137
|
/**
|
|
1055
1138
|
* Set the locus info the class instance. Should be called with the parsed locus
|
|
1056
1139
|
* we got in the join response.
|
|
@@ -1163,6 +1246,22 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1163
1246
|
* @memberof Meeting
|
|
1164
1247
|
*/
|
|
1165
1248
|
setMercuryListener(): void;
|
|
1249
|
+
/**
|
|
1250
|
+
* Removes this meeting's Mercury ONLINE/OFFLINE event listeners registered
|
|
1251
|
+
* by setMercuryListener(). Must be called before Locus /leave to avoid
|
|
1252
|
+
* unnecessary syncs/metrics triggered by events received while leaving
|
|
1253
|
+
* (per Locus team recommendation).
|
|
1254
|
+
*
|
|
1255
|
+
* Mercury is a process-wide singleton shared with other plugins, so we
|
|
1256
|
+
* pass the bound handler refs to .off() to avoid clearing every listener
|
|
1257
|
+
* for ONLINE/OFFLINE on the shared emitter.
|
|
1258
|
+
*
|
|
1259
|
+
* Idempotent: subsequent calls are no-ops because the handler refs are
|
|
1260
|
+
* cleared after detaching.
|
|
1261
|
+
* @private
|
|
1262
|
+
* @returns {void}
|
|
1263
|
+
*/
|
|
1264
|
+
private stopListeningForMercuryEvents;
|
|
1166
1265
|
/**
|
|
1167
1266
|
* Close the peer connections and remove them from the class.
|
|
1168
1267
|
* Cleanup any media connection related things.
|
|
@@ -1299,6 +1398,14 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1299
1398
|
* @returns {void}
|
|
1300
1399
|
*/
|
|
1301
1400
|
private processLocusLLMEvent;
|
|
1401
|
+
/**
|
|
1402
|
+
* Verifies the relay event was delivered for the active LLM session binding.
|
|
1403
|
+
* With the factory pattern, each meeting owns its channel, so we just verify
|
|
1404
|
+
* the route matches our channel's binding or the practice session binding.
|
|
1405
|
+
* @param {RelayEvent} event Event object coming from LLM Connection
|
|
1406
|
+
* @returns {boolean}
|
|
1407
|
+
*/
|
|
1408
|
+
private isRelayEventRouteValid;
|
|
1302
1409
|
/**
|
|
1303
1410
|
* Callback called when a relay event is received from meeting LLM Connection
|
|
1304
1411
|
* @param {RelayEvent} e Event object coming from LLM Connection
|
|
@@ -1357,22 +1464,52 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1357
1464
|
*/
|
|
1358
1465
|
private clearLLMHealthCheckTimer;
|
|
1359
1466
|
/**
|
|
1360
|
-
*
|
|
1467
|
+
* Removes LLM event listeners and clears the health check timer.
|
|
1468
|
+
* Must be called before Locus /leave to avoid unnecessary syncs triggered
|
|
1469
|
+
* by events received while leaving (per Locus team recommendation).
|
|
1470
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
1471
|
+
* matching listener is registered.
|
|
1472
|
+
* @private
|
|
1473
|
+
* @returns {void}
|
|
1474
|
+
*/
|
|
1475
|
+
private stopListeningForLLMEvents;
|
|
1476
|
+
/**
|
|
1477
|
+
* Stops listening on every event bus (LLM, Mercury, voicea/transcription,
|
|
1478
|
+
* annotation) that could otherwise deliver events to this meeting while
|
|
1479
|
+
* Locus is processing /leave or /end. Per the Locus team recommendation,
|
|
1480
|
+
* this must run before the Locus request is dispatched to avoid
|
|
1481
|
+
* unnecessary syncs triggered by in-flight events.
|
|
1482
|
+
*
|
|
1483
|
+
* Voicea (transcription) subscribes to llm 'event:relay.event' internally,
|
|
1484
|
+
* and the annotation plugin subscribes to both mercury and llm, so both
|
|
1485
|
+
* must be torn down alongside the direct LLM/Mercury listeners.
|
|
1486
|
+
*
|
|
1487
|
+
* Idempotent: safe to call multiple times; .off() is a no-op when no
|
|
1488
|
+
* matching listener is registered, and stopTranscription is guarded.
|
|
1489
|
+
* @private
|
|
1490
|
+
* @returns {void}
|
|
1491
|
+
*/
|
|
1492
|
+
private stopListeningForMeetingEvents;
|
|
1493
|
+
/**
|
|
1494
|
+
* Disconnects and cleans up the LLM channel owned by this meeting.
|
|
1495
|
+
*
|
|
1361
1496
|
* @param {Object} options
|
|
1362
|
-
* @param {boolean} [options.removeOnlineListener=true] removes the one-time online listener
|
|
1363
1497
|
* @param {boolean} [options.throwOnError=true] rethrows disconnect errors when true
|
|
1498
|
+
* @param {boolean} [options.preserveVoiceaChannel=false] when true, keeps voiceaChannel for switchLLMChannel() during reconnects
|
|
1364
1499
|
* @returns {Promise<void>}
|
|
1365
1500
|
*/
|
|
1366
1501
|
private cleanupLLMConneciton;
|
|
1367
1502
|
/**
|
|
1368
|
-
*
|
|
1369
|
-
*
|
|
1503
|
+
* Sets the datachannel token on the meeting's LLM channel.
|
|
1504
|
+
* Used by the DataChannelAuthTokenInterceptor after refreshing tokens.
|
|
1505
|
+
* @param {string} token - The new datachannel token
|
|
1370
1506
|
* @returns {void}
|
|
1371
1507
|
*/
|
|
1372
|
-
|
|
1508
|
+
setLLMChannelDataToken(token: string): void;
|
|
1373
1509
|
/**
|
|
1374
|
-
* Saves the data channel tokens from the join response
|
|
1375
|
-
*
|
|
1510
|
+
* Saves the data channel tokens from the join response.
|
|
1511
|
+
* Default session token is stored on this.llmChannel when available.
|
|
1512
|
+
* Practice session token is stored on the webinar's practice LLM channel.
|
|
1376
1513
|
* @param {Object} join - The parsed join response (from MeetingUtil.parseLocusJoin)
|
|
1377
1514
|
* @returns {void}
|
|
1378
1515
|
*/
|
|
@@ -1386,9 +1523,27 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1386
1523
|
/**
|
|
1387
1524
|
* Connects to low latency mercury and reconnects if the address has changed
|
|
1388
1525
|
* It will also disconnect if called when the meeting has ended
|
|
1526
|
+
* @param {Object} [options]
|
|
1527
|
+
* @param {boolean} [options.isInitialJoinPhase] true when called from initial join flow
|
|
1389
1528
|
* @returns {Promise}
|
|
1390
1529
|
*/
|
|
1391
|
-
updateLLMConnection(
|
|
1530
|
+
updateLLMConnection({ isInitialJoinPhase }?: {
|
|
1531
|
+
isInitialJoinPhase?: boolean;
|
|
1532
|
+
}): Promise<any>;
|
|
1533
|
+
/**
|
|
1534
|
+
* Ensures breakout join response metric with LLM latency is emitted only once per breakout move id.
|
|
1535
|
+
* @param {string | undefined} breakoutMoveId
|
|
1536
|
+
* @param {boolean} [hasLLMLatency=false]
|
|
1537
|
+
* @returns {boolean}
|
|
1538
|
+
*/
|
|
1539
|
+
private shouldEmitBreakoutJoinResponseMetric;
|
|
1540
|
+
/**
|
|
1541
|
+
* Sends LLM connect latencies for initial join flow.
|
|
1542
|
+
* @param {RegisterAndConnectTiming} timings
|
|
1543
|
+
* @param {any} [error]
|
|
1544
|
+
* @returns {void}
|
|
1545
|
+
*/
|
|
1546
|
+
private sendLLMConnectMetric;
|
|
1392
1547
|
/**
|
|
1393
1548
|
* Use phone for meeting audio
|
|
1394
1549
|
* @param {String} phoneNumber If provided, it will dial-out using this number. If not provided, dial-in will be used
|
|
@@ -1466,12 +1621,36 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1466
1621
|
*/
|
|
1467
1622
|
setupStatsAnalyzerEventHandlers: () => void;
|
|
1468
1623
|
getMediaConnectionDebugId(): string;
|
|
1624
|
+
/**
|
|
1625
|
+
* Checks if the error indicates that Locus dropped us from the meeting,
|
|
1626
|
+
* either directly on the error or wrapped inside an AddMediaFailed cause.
|
|
1627
|
+
* This method is meant to be called only with errors thrown by Meeting.addMediaInternal()
|
|
1628
|
+
*
|
|
1629
|
+
* @param {Error} error
|
|
1630
|
+
* @returns {boolean}
|
|
1631
|
+
*/
|
|
1632
|
+
private isErrorMeaningLocusDroppedUs;
|
|
1633
|
+
private isLocusUserFullError;
|
|
1634
|
+
/**
|
|
1635
|
+
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
1636
|
+
* We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
|
|
1637
|
+
* transport (as there will be only 1 transport) and dealing with firewalls that let STUN packets through, but block
|
|
1638
|
+
* other UDP traffic.
|
|
1639
|
+
*
|
|
1640
|
+
* For clients landing on video mesh nodes (VMN), reachability might still have successful TLS (to public nodes)
|
|
1641
|
+
* but TURN discovery will result in empty TURN urls array and iceTransportPolicy='relay' will still be overriden to undefined,
|
|
1642
|
+
* see the code in establishMediaConnection()
|
|
1643
|
+
*
|
|
1644
|
+
* @param {Error} prevError - The error from the previous addMedia attempt
|
|
1645
|
+
* @returns {Promise<boolean>}
|
|
1646
|
+
*/
|
|
1647
|
+
private shouldRetryMediaWithOnlyTurnTLS;
|
|
1469
1648
|
/**
|
|
1470
1649
|
* Creates a webrtc media connection and publishes streams to it
|
|
1471
1650
|
*
|
|
1472
1651
|
* @param {Object} turnServerInfo TURN server information
|
|
1473
1652
|
* @param {BundlePolicy} [bundlePolicy] Bundle policy settings
|
|
1474
|
-
* @param {
|
|
1653
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] ICE transport policy override
|
|
1475
1654
|
* @returns {RoapMediaConnection | MultistreamRoapMediaConnection}
|
|
1476
1655
|
*/
|
|
1477
1656
|
private createMediaConnection;
|
|
@@ -1597,6 +1776,13 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1597
1776
|
* @returns {void}
|
|
1598
1777
|
*/
|
|
1599
1778
|
private setupLocusMediaRequest;
|
|
1779
|
+
/**
|
|
1780
|
+
* Waits for LocusInfo to update meeting.selfUrl, with a timeout fallback.
|
|
1781
|
+
* @returns {Promise<void>}
|
|
1782
|
+
* @private
|
|
1783
|
+
* @memberof Meeting
|
|
1784
|
+
*/
|
|
1785
|
+
private waitForSelfUrlChange;
|
|
1600
1786
|
/**
|
|
1601
1787
|
* Creates a media connection to the server. Media connection is required for sending or receiving any audio/video.
|
|
1602
1788
|
*
|
|
@@ -1610,14 +1796,15 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1610
1796
|
* Internal version of addMedia() with some more arguments for finer control of its behavior
|
|
1611
1797
|
*
|
|
1612
1798
|
* @param {Function} icePhaseCallback - callback to determine the icePhase for CA "client.ice.end" failure events
|
|
1613
|
-
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
1614
1799
|
* @param {boolean} forceTurnDiscovery - if true, TURN discovery will be done
|
|
1800
|
+
* @param {TurnServerInfo} turnServerInfo - TURN server information
|
|
1801
|
+
* @param {RTCIceTransportPolicy} [iceTransportPolicy] - ICE transport policy override
|
|
1615
1802
|
* @param {AddMediaOptions} options - same as options of the public addMedia() method
|
|
1616
1803
|
* @returns {Promise<void>}
|
|
1617
1804
|
* @protected
|
|
1618
1805
|
* @memberof Meeting
|
|
1619
1806
|
*/
|
|
1620
|
-
protected addMediaInternal(icePhaseCallback: () => string,
|
|
1807
|
+
protected addMediaInternal(icePhaseCallback: () => string, forceTurnDiscovery: boolean, turnServerInfo?: TurnServerInfo, iceTransportPolicy?: RTCIceTransportPolicy, options?: AddMediaOptions): Promise<void>;
|
|
1621
1808
|
/**
|
|
1622
1809
|
* Informs if the peer connection is in a state that can be updated with updateMedia (audio/video/share)
|
|
1623
1810
|
* @returns {Boolean}
|
|
@@ -1980,7 +2167,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1980
2167
|
* @public
|
|
1981
2168
|
* @memberof Meeting
|
|
1982
2169
|
*/
|
|
1983
|
-
sendReaction(reactionType:
|
|
2170
|
+
sendReaction(reactionType: string, skinToneType?: SkinToneType): any;
|
|
1984
2171
|
/**
|
|
1985
2172
|
* Extend the current meeting duration.
|
|
1986
2173
|
*
|
|
@@ -2144,6 +2331,20 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
2144
2331
|
dataChannelTokenType: DataChannelTokenType;
|
|
2145
2332
|
};
|
|
2146
2333
|
}>;
|
|
2334
|
+
/**
|
|
2335
|
+
* Checks if the LLM channel is connected.
|
|
2336
|
+
* Handles practice session context automatically - returns practice session
|
|
2337
|
+
* LLM channel status when in practice session, main LLM channel status otherwise.
|
|
2338
|
+
* @returns {boolean} True if the appropriate LLM channel is connected
|
|
2339
|
+
*/
|
|
2340
|
+
isLLMConnected(): boolean;
|
|
2341
|
+
/**
|
|
2342
|
+
* Gets the locus URL from the LLM channel.
|
|
2343
|
+
* Handles practice session context automatically - returns practice session
|
|
2344
|
+
* LLM channel's locus URL when in practice session, main LLM channel's locus URL otherwise.
|
|
2345
|
+
* @returns {string | undefined} The locus URL or undefined
|
|
2346
|
+
*/
|
|
2347
|
+
getLLMLocusUrl(): string | undefined;
|
|
2147
2348
|
/**
|
|
2148
2349
|
* Determines the current data channel token type based on the meeting state.
|
|
2149
2350
|
*
|
|
@@ -32,6 +32,8 @@ export type Config = {
|
|
|
32
32
|
correlationId: string;
|
|
33
33
|
meetingId: string;
|
|
34
34
|
preferTranscoding: boolean;
|
|
35
|
+
getCurrentSelfUrl: () => string | undefined;
|
|
36
|
+
waitForSelfUrlChange: () => Promise<void>;
|
|
35
37
|
};
|
|
36
38
|
/**
|
|
37
39
|
* This class manages all /media API requests to Locus. Every call to that
|
|
@@ -67,6 +69,16 @@ export declare class LocusMediaRequest extends WebexPlugin {
|
|
|
67
69
|
* Prepares the uri and body for the media request to be sent to Locus
|
|
68
70
|
*/
|
|
69
71
|
private sendHttpRequest;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the latest selfUrl for this meeting, falling back to the value
|
|
74
|
+
* captured when the request was enqueued.
|
|
75
|
+
*/
|
|
76
|
+
private getCurrentSelfUrl;
|
|
77
|
+
/**
|
|
78
|
+
* Decides whether a 409 warrants a retry against the meeting's latest
|
|
79
|
+
* selfUrl.
|
|
80
|
+
*/
|
|
81
|
+
private shouldRetryOnSelfUrlChange;
|
|
70
82
|
/**
|
|
71
83
|
* Sends a media request to Locus
|
|
72
84
|
*/
|
|
@@ -63,6 +63,7 @@ export default class MeetingRequest extends StatelessWebexPlugin {
|
|
|
63
63
|
locale?: string;
|
|
64
64
|
deviceCapabilities?: Array<string>;
|
|
65
65
|
liveAnnotationSupported: boolean;
|
|
66
|
+
enableSimultaneousInterpretation: boolean;
|
|
66
67
|
alias?: string;
|
|
67
68
|
clientMediaPreferences: ClientMediaPreferences;
|
|
68
69
|
}): Promise<any>;
|
|
@@ -49,7 +49,9 @@ declare const MeetingUtil: {
|
|
|
49
49
|
*/
|
|
50
50
|
getCaEventLabelsForIpVersion(webex: any): Array<string> | undefined;
|
|
51
51
|
joinMeeting: (meeting: any, options: any) => Promise<any>;
|
|
52
|
-
cleanUp: (meeting: any
|
|
52
|
+
cleanUp: (meeting: any, { preserveVoiceaChannel }?: {
|
|
53
|
+
preserveVoiceaChannel?: boolean;
|
|
54
|
+
}) => any;
|
|
53
55
|
disconnectPhoneAudio: (meeting: any, phoneUrl: any) => any;
|
|
54
56
|
/**
|
|
55
57
|
* Returns options for leaving a meeting.
|
|
@@ -133,6 +135,13 @@ declare const MeetingUtil: {
|
|
|
133
135
|
* @returns {void}
|
|
134
136
|
*/
|
|
135
137
|
addSequence: (meeting: any, requestBody: any) => void;
|
|
138
|
+
/**
|
|
139
|
+
* Checks if Locus API response contains a Locus DTO
|
|
140
|
+
*
|
|
141
|
+
* @param {any} response http response from Locus API call
|
|
142
|
+
* @returns {boolean} true if response contains a Locus DTO
|
|
143
|
+
*/
|
|
144
|
+
isLocusDtoInAPIResponse(response: any): any;
|
|
136
145
|
/**
|
|
137
146
|
* Updates the locus info for the meeting with the locus
|
|
138
147
|
* information returned from API requests made to Locus
|
|
@@ -146,6 +155,8 @@ declare const MeetingUtil: {
|
|
|
146
155
|
generateLocusDeltaRequest: (originalMeeting: any) => (originalOptions: any) => any;
|
|
147
156
|
canAttendeeRequestAiAssistantEnabled: (displayHints?: any[], roles?: any[]) => boolean;
|
|
148
157
|
attendeeRequestAiAssistantDeclinedAll: (displayHints?: any[]) => boolean;
|
|
158
|
+
isAnonymizeDisplayNamesEnabled: (displayHints: any) => any;
|
|
159
|
+
canViewTheParticipantList: (displayHints: any, canNotViewTheParticipantList: boolean) => any;
|
|
149
160
|
selfSupportsFeature: (feature: SELF_POLICY, userPolicies: Record<SELF_POLICY, boolean>) => boolean;
|
|
150
161
|
parseInterpretationInfo: (meeting: any, meetingInfo: any) => void;
|
|
151
162
|
/**
|