@webex/plugin-meetings 3.12.0-next.14 → 3.12.0-next.141
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 +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 +23 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +10 -1
- 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 +1680 -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 +34 -2
- 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 +9 -3
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +293 -124
- 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/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 +176 -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/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/index.ts +16 -0
- package/src/annotation/index.ts +6 -4
- 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/index.ts +62 -10
- 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/dataChannelAuthToken.ts +88 -12
- package/src/interceptors/locusRetry.ts +25 -4
- package/src/interpretation/index.ts +27 -9
- package/src/interpretation/interpretation.types.ts +11 -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/index.ts +10 -1
- package/src/media/properties.ts +8 -3
- package/src/meeting/in-meeting-actions.ts +8 -0
- package/src/meeting/index.ts +933 -119
- 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 +46 -5
- package/src/meeting/voicea-meeting.ts +1 -1
- package/src/meeting-info/meeting-info-v2.ts +10 -4
- package/src/meetings/index.ts +197 -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/index.ts +10 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +29 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/constants.ts +6 -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/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/reactions.type.ts +3 -0
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/turnDiscovery.ts +9 -1
- 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 +205 -4
- package/test/unit/spec/interpretation/index.ts +26 -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 +2805 -116
- 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 +153 -1
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +76 -10
- package/test/unit/spec/meetings/index.js +533 -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/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
|
@@ -157,19 +157,66 @@ WebExMeetingsErrors[IceGatheringFailed.CODE] = IceGatheringFailed;
|
|
|
157
157
|
class AddMediaFailed extends WebexMeetingsError {
|
|
158
158
|
static CODE = 30203;
|
|
159
159
|
cause?: Error;
|
|
160
|
+
connectionType?: string;
|
|
161
|
+
selectedCandidatePairChanges?: number;
|
|
162
|
+
numTransports?: number;
|
|
163
|
+
iceConnected?: boolean;
|
|
160
164
|
|
|
161
165
|
/**
|
|
162
166
|
* Creates a new AddMediaFailed error
|
|
163
|
-
* @param {
|
|
167
|
+
* @param {Object} options
|
|
168
|
+
* @param {Error} [options.cause] - The underlying error that caused the media addition to fail
|
|
169
|
+
* @param {string} [options.connectionType] - The ICE connection type at the time of failure (e.g. 'UDP', 'TURN-TLS')
|
|
170
|
+
* @param {number} [options.selectedCandidatePairChanges] - Number of times the selected candidate pair changed
|
|
171
|
+
* @param {number} [options.numTransports] - Number of ICE transports
|
|
172
|
+
* @param {boolean} [options.iceConnected] - Whether ICE connection was established before the failure
|
|
164
173
|
*/
|
|
165
|
-
constructor(
|
|
174
|
+
constructor(
|
|
175
|
+
options: {
|
|
176
|
+
cause?: Error;
|
|
177
|
+
connectionType?: string;
|
|
178
|
+
selectedCandidatePairChanges?: number;
|
|
179
|
+
numTransports?: number;
|
|
180
|
+
iceConnected?: boolean;
|
|
181
|
+
} = {}
|
|
182
|
+
) {
|
|
166
183
|
super(AddMediaFailed.CODE, 'Failed to add media');
|
|
167
|
-
this.cause = cause;
|
|
184
|
+
this.cause = options.cause;
|
|
185
|
+
this.connectionType = options.connectionType;
|
|
186
|
+
this.selectedCandidatePairChanges = options.selectedCandidatePairChanges;
|
|
187
|
+
this.numTransports = options.numTransports;
|
|
188
|
+
this.iceConnected = options.iceConnected;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns true if the failure was due to a DTLS handshake failure
|
|
193
|
+
* (ICE connected successfully but the overall media connection failed).
|
|
194
|
+
*/
|
|
195
|
+
get isDtlsHandshakeFailure(): boolean {
|
|
196
|
+
return this.iceConnected === true;
|
|
168
197
|
}
|
|
169
198
|
}
|
|
170
199
|
export {AddMediaFailed};
|
|
171
200
|
WebExMeetingsErrors[AddMediaFailed.CODE] = AddMediaFailed;
|
|
172
201
|
|
|
202
|
+
/**
|
|
203
|
+
* @class MediaConnectionTimedOutError
|
|
204
|
+
* @classdesc Internal error thrown when the media connection times out waiting to connect.
|
|
205
|
+
*/
|
|
206
|
+
class MediaConnectionTimedOutError extends Error {
|
|
207
|
+
iceConnected: boolean;
|
|
208
|
+
|
|
209
|
+
cause?: any;
|
|
210
|
+
|
|
211
|
+
constructor(message: string, iceConnected: boolean, cause?: any) {
|
|
212
|
+
super(message);
|
|
213
|
+
this.name = 'MediaConnectionTimedOutError';
|
|
214
|
+
this.iceConnected = iceConnected;
|
|
215
|
+
this.cause = cause;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
export {MediaConnectionTimedOutError};
|
|
219
|
+
|
|
173
220
|
/**
|
|
174
221
|
* @class SdpResponseTimeoutError
|
|
175
222
|
* @classdesc Raised whenever we timeout waiting for remote SDP answer
|
package/src/config.ts
CHANGED
|
@@ -82,17 +82,17 @@ export default {
|
|
|
82
82
|
enableExtmap: false,
|
|
83
83
|
enableAutomaticLLM: false,
|
|
84
84
|
installedOrgID: undefined,
|
|
85
|
+
multipartSitePrefixList: ['.my.', '.mydmz.', '.mybts.', '.mydev.', '.myats2.', '.myats.'],
|
|
85
86
|
experimental: {
|
|
86
87
|
enableMediaNegotiatedEvent: false,
|
|
87
88
|
enableUnifiedMeetings: true,
|
|
88
89
|
enableAdhocMeetings: true,
|
|
89
|
-
enableTcpReachability: false,
|
|
90
|
-
enableTlsReachability: false,
|
|
91
90
|
storeLocusHashTreeEventsForDebugging: false,
|
|
92
91
|
},
|
|
93
92
|
degradationPreferences: {
|
|
94
93
|
maxMacroblocksLimit: 8192,
|
|
95
94
|
},
|
|
95
|
+
enableAv1SlidesSupport: false,
|
|
96
96
|
// This only applies to non-multistream meetings
|
|
97
97
|
iceCandidatesGatheringTimeout: undefined,
|
|
98
98
|
backendIpv6NativeSupport: false,
|
package/src/constants.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import {hydraTypes} from '@webex/common';
|
|
3
3
|
|
|
4
|
+
export {LLM_DEFAULT_SESSION, LLM_PRACTICE_SESSION} from '@webex/internal-plugin-llm';
|
|
5
|
+
|
|
4
6
|
export type Enum<T extends Record<string, unknown>> = T[keyof T];
|
|
5
7
|
|
|
6
8
|
// *********** LOWERCASE / CAMELCASE STRINGS ************
|
|
@@ -44,7 +46,6 @@ export const LOCAL = 'local';
|
|
|
44
46
|
export const LOCI = 'loci';
|
|
45
47
|
export const LOCUS_URL = 'locusUrl';
|
|
46
48
|
export const END = 'end';
|
|
47
|
-
export const LLM_PRACTICE_SESSION = 'llm-practice-session';
|
|
48
49
|
|
|
49
50
|
export const MAX_RANDOM_DELAY_FOR_MEETING_INFO = 3 * 60 * 1000;
|
|
50
51
|
export const MEETINGINFO = 'meetingInfo';
|
|
@@ -391,6 +392,7 @@ export const EVENT_TRIGGERS = {
|
|
|
391
392
|
MEETING_CAPTION_RECEIVED: 'meeting:caption-received',
|
|
392
393
|
MEETING_PARTICIPANT_REASON_CHANGED: 'meeting:participant-reason-changed',
|
|
393
394
|
MEETING_AI_ENABLE_REQUEST: 'meeting:aiEnableRequest',
|
|
395
|
+
MEETING_SRTP_CIPHER_UPDATED: 'meeting:srtpCipher:updated',
|
|
394
396
|
};
|
|
395
397
|
|
|
396
398
|
export const EVENT_TYPES = {
|
|
@@ -417,7 +419,7 @@ export const HEADERS = {
|
|
|
417
419
|
// Meeting actually ended
|
|
418
420
|
export const MEETING_REMOVED_REASON = {
|
|
419
421
|
SELF_REMOVED: 'SELF_REMOVED', // server or host removed you from the meeting
|
|
420
|
-
MEETING_INACTIVE_TERMINATING: 'MEETING_INACTIVE_TERMINATING', // Meeting got ended or everyone left the meeting
|
|
422
|
+
MEETING_INACTIVE_TERMINATING: 'MEETING_INACTIVE_TERMINATING', // Meeting got ended or everyone left the meeting (historically was sent on Locus TERMINATING or INACTIVE, but now only on INACTIVE as that's the final state)
|
|
421
423
|
CLIENT_LEAVE_REQUEST: 'CLIENT_LEAVE_REQUEST', // You triggered leave meeting
|
|
422
424
|
CLIENT_LEAVE_REQUEST_TAB_CLOSED: 'CLIENT_LEAVE_REQUEST_TAB_CLOSED', // You triggered leave meeting, such as closing the browser tab directly
|
|
423
425
|
USER_ENDED_SHARE_STREAMS: 'USER_ENDED_SHARE_STREAMS', // user triggered stop share
|
|
@@ -658,6 +660,7 @@ export const BREAKOUTS = {
|
|
|
658
660
|
LEAVE_BREAKOUT: 'LEAVE_BREAKOUT',
|
|
659
661
|
ASK_FOR_HELP: 'ASK_FOR_HELP',
|
|
660
662
|
PRE_ASSIGNMENTS_UPDATE: 'PRE_ASSIGNMENTS_UPDATE',
|
|
663
|
+
LLM_CONNECT_RESPONSE: 'LLM_CONNECT_RESPONSE',
|
|
661
664
|
},
|
|
662
665
|
SESSION_TYPES: {
|
|
663
666
|
MAIN: 'MAIN',
|
|
@@ -700,6 +703,12 @@ export const INTERPRETATION = {
|
|
|
700
703
|
DECLINED: 'DECLINED',
|
|
701
704
|
},
|
|
702
705
|
RESOURCE_TYPE: 'SiHandover',
|
|
706
|
+
CAPABILITIES: {
|
|
707
|
+
HOST_CONTROL_SI_SUPPORTED: 'HOST_CONTROL_SI_SUPPORTED',
|
|
708
|
+
INTERPRETER_CONTROL_SI_SUPPORTED: 'INTERPRETER_CONTROL_SI_SUPPORTED',
|
|
709
|
+
SI_HANDOVER_SUPPORTED: 'SI_HANDOVER_SUPPORTED',
|
|
710
|
+
SIGN_INTERPRETER_SUPPORTED: 'SIGN_INTERPRETER_SUPPORTED',
|
|
711
|
+
},
|
|
703
712
|
};
|
|
704
713
|
|
|
705
714
|
export const LOCUSINFO = {
|
|
@@ -1031,6 +1040,8 @@ export const DISPLAY_HINTS = {
|
|
|
1031
1040
|
// participants list
|
|
1032
1041
|
DISABLE_VIEW_THE_PARTICIPANT_LIST: 'DISABLE_VIEW_THE_PARTICIPANT_LIST',
|
|
1033
1042
|
ENABLE_VIEW_THE_PARTICIPANT_LIST: 'ENABLE_VIEW_THE_PARTICIPANT_LIST',
|
|
1043
|
+
VIEW_THE_PARTICIPANT_LIST: 'VIEW_THE_PARTICIPANT_LIST',
|
|
1044
|
+
CAN_VIEW_THE_PARTICIPANT_LIST: 'CAN_VIEW_THE_PARTICIPANT_LIST',
|
|
1034
1045
|
// for webinar participants list
|
|
1035
1046
|
DISABLE_VIEW_THE_PARTICIPANT_LIST_PANELIST: 'DISABLE_VIEW_THE_PARTICIPANT_LIST_PANELIST',
|
|
1036
1047
|
ENABLE_VIEW_THE_PARTICIPANT_LIST_PANELIST: 'ENABLE_VIEW_THE_PARTICIPANT_LIST_PANELIST',
|
|
@@ -1093,15 +1104,22 @@ export const DISPLAY_HINTS = {
|
|
|
1093
1104
|
// AI
|
|
1094
1105
|
ATTENDEE_REQUEST_AI_ASSISTANT_ENABLED: 'ATTENDEE_REQUEST_AI_ASSISTANT_ENABLED',
|
|
1095
1106
|
ATTENDEE_REQUEST_AI_ASSISTANT_DECLINED_ALL: 'ATTENDEE_REQUEST_AI_ASSISTANT_DECLINED_ALL',
|
|
1107
|
+
|
|
1108
|
+
// Anonymous Display Names
|
|
1109
|
+
ANONYMOUS_DISPLAY_NAMES_ENABLED: 'ANONYMOUS_DISPLAY_NAMES_ENABLED',
|
|
1096
1110
|
};
|
|
1097
1111
|
|
|
1098
|
-
export const INTERSTITIAL_DISPLAY_HINTS = [
|
|
1112
|
+
export const INTERSTITIAL_DISPLAY_HINTS = [
|
|
1113
|
+
DISPLAY_HINTS.VOIP_IS_ENABLED,
|
|
1114
|
+
DISPLAY_HINTS.ANONYMOUS_DISPLAY_NAMES_ENABLED,
|
|
1115
|
+
];
|
|
1099
1116
|
|
|
1100
1117
|
export const SELF_ROLES = {
|
|
1101
1118
|
COHOST: 'COHOST',
|
|
1102
1119
|
MODERATOR: 'MODERATOR',
|
|
1103
1120
|
ATTENDEE: 'ATTENDEE',
|
|
1104
1121
|
PANELIST: 'PANELIST',
|
|
1122
|
+
PRESENTER: 'PRESENTER',
|
|
1105
1123
|
};
|
|
1106
1124
|
|
|
1107
1125
|
export const MEETING_STATE = {
|
|
@@ -4,7 +4,7 @@ import PermissionError from '../common/errors/permission';
|
|
|
4
4
|
import MeetingRequest from '../meeting/request';
|
|
5
5
|
import LoggerProxy from '../common/logs/logger-proxy';
|
|
6
6
|
import {Control, Setting} from './enums';
|
|
7
|
-
import {ControlConfig} from './types';
|
|
7
|
+
import {ControlConfig, ViewTheParticipantListProperties} from './types';
|
|
8
8
|
import Util from './util';
|
|
9
9
|
import {CAN_SET, CAN_UNSET, ENABLED} from './constants';
|
|
10
10
|
|
|
@@ -56,6 +56,10 @@ export default class ControlsOptionsManager {
|
|
|
56
56
|
*/
|
|
57
57
|
private mainLocusUrl: string;
|
|
58
58
|
|
|
59
|
+
private getControls: () => Record<string, any> = () => ({});
|
|
60
|
+
|
|
61
|
+
private isWebinar: () => boolean = () => false;
|
|
62
|
+
|
|
59
63
|
/**
|
|
60
64
|
* @param {MeetingRequest} request
|
|
61
65
|
* @param {Object} options
|
|
@@ -67,6 +71,8 @@ export default class ControlsOptionsManager {
|
|
|
67
71
|
options?: {
|
|
68
72
|
locusUrl: string;
|
|
69
73
|
displayHints?: Array<string>;
|
|
74
|
+
getControls?: () => Record<string, any>;
|
|
75
|
+
isWebinar?: () => boolean;
|
|
70
76
|
}
|
|
71
77
|
) {
|
|
72
78
|
this.initialize(request);
|
|
@@ -89,7 +95,12 @@ export default class ControlsOptionsManager {
|
|
|
89
95
|
* @public
|
|
90
96
|
* @memberof ControlsOptionsManager
|
|
91
97
|
*/
|
|
92
|
-
public set(options?: {
|
|
98
|
+
public set(options?: {
|
|
99
|
+
locusUrl: string;
|
|
100
|
+
displayHints?: Array<string>;
|
|
101
|
+
getControls?: () => Record<string, any>;
|
|
102
|
+
isWebinar?: () => boolean;
|
|
103
|
+
}) {
|
|
93
104
|
this.extract(options);
|
|
94
105
|
}
|
|
95
106
|
|
|
@@ -141,9 +152,20 @@ export default class ControlsOptionsManager {
|
|
|
141
152
|
* @private
|
|
142
153
|
* @memberof ControlsOptionsManager
|
|
143
154
|
*/
|
|
144
|
-
private extract(options?: {
|
|
155
|
+
private extract(options?: {
|
|
156
|
+
locusUrl: string;
|
|
157
|
+
displayHints?: Array<string>;
|
|
158
|
+
getControls?: () => Record<string, any>;
|
|
159
|
+
isWebinar?: () => boolean;
|
|
160
|
+
}) {
|
|
145
161
|
this.setDisplayHints(options?.displayHints);
|
|
146
162
|
this.setLocusUrl(options?.locusUrl);
|
|
163
|
+
if (options?.getControls) {
|
|
164
|
+
this.getControls = options.getControls;
|
|
165
|
+
}
|
|
166
|
+
if (options?.isWebinar) {
|
|
167
|
+
this.isWebinar = options.isWebinar;
|
|
168
|
+
}
|
|
147
169
|
}
|
|
148
170
|
|
|
149
171
|
/**
|
|
@@ -172,8 +194,22 @@ export default class ControlsOptionsManager {
|
|
|
172
194
|
);
|
|
173
195
|
}
|
|
174
196
|
|
|
197
|
+
let {properties} = control;
|
|
198
|
+
|
|
199
|
+
if (control.scope === Control.viewTheParticipantList) {
|
|
200
|
+
const props = properties as ViewTheParticipantListProperties;
|
|
201
|
+
const current = this.getControls()?.viewTheParticipantList;
|
|
202
|
+
properties = {
|
|
203
|
+
enabled: props.enabled ?? current?.enabled ?? false,
|
|
204
|
+
...(this.isWebinar() && {
|
|
205
|
+
panelistEnabled: props.panelistEnabled ?? current?.panelistEnabled ?? false,
|
|
206
|
+
attendeeCount: props.attendeeCount ?? Boolean(current?.attendeeCount) ?? false,
|
|
207
|
+
}),
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
175
211
|
return {
|
|
176
|
-
[control.scope]:
|
|
212
|
+
[control.scope]: properties,
|
|
177
213
|
};
|
|
178
214
|
});
|
|
179
215
|
|
|
@@ -184,10 +220,7 @@ export default class ControlsOptionsManager {
|
|
|
184
220
|
mainLocusUrl: this.mainLocusUrl,
|
|
185
221
|
});
|
|
186
222
|
|
|
187
|
-
return previous.then(() =>
|
|
188
|
-
// @ts-ignore
|
|
189
|
-
this.request.request(requestParams)
|
|
190
|
-
);
|
|
223
|
+
return previous.then(() => this.sendControlsRequest(requestParams));
|
|
191
224
|
}, Promise.resolve());
|
|
192
225
|
}
|
|
193
226
|
|
|
@@ -274,8 +307,27 @@ export default class ControlsOptionsManager {
|
|
|
274
307
|
mainLocusUrl: this.mainLocusUrl,
|
|
275
308
|
});
|
|
276
309
|
|
|
277
|
-
|
|
278
|
-
|
|
310
|
+
return this.sendControlsRequest(requestParams);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Sends a controls request to Locus. When authorizingLocusUrl is present in the body,
|
|
315
|
+
* we use a plain request() because the response contains the main session Locus DTO
|
|
316
|
+
* instead of the breakout we're in, so we don't want to parse it as a delta.
|
|
317
|
+
* Otherwise we use locusDeltaRequest() for normal delta processing.
|
|
318
|
+
*
|
|
319
|
+
* @param {Object} requestParams - The request parameters from getControlsRequestParams.
|
|
320
|
+
* @returns {Promise<any>}
|
|
321
|
+
*/
|
|
322
|
+
private sendControlsRequest(requestParams: {
|
|
323
|
+
uri: string;
|
|
324
|
+
body: Record<string, any>;
|
|
325
|
+
method: string;
|
|
326
|
+
}): Promise<any> {
|
|
327
|
+
return requestParams.body.authorizingLocusUrl
|
|
328
|
+
? // @ts-ignore
|
|
329
|
+
this.request.request(requestParams)
|
|
330
|
+
: this.request.locusDeltaRequest(requestParams);
|
|
279
331
|
}
|
|
280
332
|
|
|
281
333
|
/**
|
|
@@ -17,3 +17,10 @@ export const DataSetNames = {
|
|
|
17
17
|
// participant object for webinar attendees. If SELF were initialized first, locus.info
|
|
18
18
|
// would not yet be populated and the attendee participant would be skipped.
|
|
19
19
|
export const DATA_SET_INIT_PRIORITY: string[] = [DataSetNames.MAIN, DataSetNames.SELF];
|
|
20
|
+
|
|
21
|
+
// Data sets for which we normally receive events over LLM connection
|
|
22
|
+
export const LLM_DATASET_NAMES = [
|
|
23
|
+
DataSetNames.MAIN,
|
|
24
|
+
DataSetNames.ATD_ACTIVE,
|
|
25
|
+
DataSetNames.ATD_UNMUTED,
|
|
26
|
+
];
|