forked from jitsi/lib-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJitsiConferenceEvents.ts
More file actions
518 lines (431 loc) · 16.1 KB
/
JitsiConferenceEvents.ts
File metadata and controls
518 lines (431 loc) · 16.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
export enum JitsiConferenceEvents {
/**
* Event indicates that the current conference audio input switched between audio
* input states,i.e. with or without audio input.
*/
AUDIO_INPUT_STATE_CHANGE = 'conference.audio_input_state_changed',
/**
* Event indicates that the permission for unmuting audio has changed based on the number of audio senders in the
* call and the audio sender limit configured in Jicofo.
*/
AUDIO_UNMUTE_PERMISSIONS_CHANGED = 'conference.audio_unmute_permissions_changed',
/**
* Indicates that authentication status changed.
*/
AUTH_STATUS_CHANGED = 'conference.auth_status_changed',
/**
* The local participant was approved to be able to unmute.
* @param {options} event - {
* {MediaType} mediaType
* }.
*/
AV_MODERATION_APPROVED = 'conference.av_moderation.approved',
/**
* AV Moderation was enabled/disabled. The actor is the participant that is currently in the meeting,
* or undefined if that participant has left the meeting.
*
* @param {options} event - {
* {boolean} enabled,
* {MediaType} mediaType,
* {JitsiParticipant} actor
* }.
*/
AV_MODERATION_CHANGED = 'conference.av_moderation.changed',
/**
* AV Moderation, report for user being approved to unmute.
* @param {options} event - {
* {JitsiParticipant} participant,
* {MediaType} mediaType
* }.
*/
AV_MODERATION_PARTICIPANT_APPROVED = 'conference.av_moderation.participant.approved',
/**
* AV Moderation, report for user being blocked to unmute.
* @param {options} event - {
* {JitsiParticipant} participant,
* {MediaType} mediaType
* }.
*/
AV_MODERATION_PARTICIPANT_REJECTED = 'conference.av_moderation.participant.rejected',
/**
* The local participant was blocked to be able to unmute.
* @param {options} event - {
* {MediaType} mediaType
* }.
*/
AV_MODERATION_REJECTED = 'conference.av_moderation.rejected',
/**
* Fired just before the statistics module is disposed and it's the last chance
* to submit some logs to the statistics service before it's disconnected.
*/
BEFORE_STATISTICS_DISPOSED = 'conference.beforeStatisticsDisposed',
/**
* Event indicates that the bot participant type changed.
*/
BOT_TYPE_CHANGED = 'conference.bot_type_changed',
/**
* Event fired when a participant is requested to join a given (breakout) room.
*/
BREAKOUT_ROOMS_MOVE_TO_ROOM = 'conference.breakout-rooms.move-to-room',
/**
* Event fired when the breakout rooms data was updated.
*/
BREAKOUT_ROOMS_UPDATED = 'conference.breakout-rooms.updated',
/**
* Event fired when the bandwidth estimation stats are received from the bridge.
*/
BRIDGE_BWE_STATS_RECEIVED = 'conference.bridgeBweStatsReceived',
/**
* UTC conference timestamp when first participant joined.
*/
CONFERENCE_CREATED_TIMESTAMP = 'conference.createdTimestamp',
/**
* Indicates that an error occurred.
*/
CONFERENCE_ERROR = 'conference.error',
/**
* Indicates that conference failed.
*/
CONFERENCE_FAILED = 'conference.failed',
/**
* Indicates that conference has been joined. The event does NOT provide any
* parameters to its listeners.
*/
CONFERENCE_JOINED = 'conference.joined',
/**
* Indicates that conference is in progress of joining.
*/
CONFERENCE_JOIN_IN_PROGRESS = 'conference.join_in_progress',
/**
* Indicates that conference has been left.
*/
CONFERENCE_LEFT = 'conference.left',
/**
* Indicates that the conference unique identifier has been set.
*/
CONFERENCE_UNIQUE_ID_SET = 'conference.unique_id_set',
/**
* Indicates that the aggregate set of codecs supported by the visitors has changed.
*/
CONFERENCE_VISITOR_CODECS_CHANGED = 'conference.visitor_codecs_changed',
/**
* Indicates that the connection to the conference has been established
* XXX This is currently fired when the *ICE* connection enters 'connected'
* state for the first time.
*/
CONNECTION_ESTABLISHED = 'conference.connectionEstablished',
/**
* Indicates that the connection to the conference has been interrupted for some
* reason.
* XXX This is currently fired when the *ICE* connection is interrupted.
*/
CONNECTION_INTERRUPTED = 'conference.connectionInterrupted',
/**
* Indicates that the connection to the conference has been restored.
* XXX This is currently fired when the *ICE* connection is restored.
*/
CONNECTION_RESTORED = 'conference.connectionRestored',
/**
* A connection to the video bridge's data channel has been closed.
* This event is only emitted in
*/
DATA_CHANNEL_CLOSED = 'conference.dataChannelClosed',
/**
* A connection to the video bridge's data channel has been established.
*/
DATA_CHANNEL_OPENED = 'conference.dataChannelOpened',
/**
* A user has changed it display name
*/
DISPLAY_NAME_CHANGED = 'conference.displayNameChanged',
/**
* The dominant speaker was changed.
*/
DOMINANT_SPEAKER_CHANGED = 'conference.dominantSpeaker',
/**
* Indicates that DTMF support changed.
*/
DTMF_SUPPORT_CHANGED = 'conference.dtmfSupportChanged',
E2EE_CHAT_KEY_RECEIVED = 'conference.e2ee.chat_key_received',
E2EE_CRYPTO_FAILED = 'conference.e2ee.crypto_failed',
E2EE_KEY_SYNC_AFTER_TIMEOUT = 'conference.e2ee.key_sync_after_timeout',
E2EE_KEY_SYNC_FAILED = 'conference.e2ee.key_sync_failed',
E2EE_SAS_AVAILABLE = 'conference.e2ee.sas.available',
/**
* Indicates that the encode time stats for the local video sources has been received.
*/
ENCODE_TIME_STATS_RECEIVED = 'conference.encode_time_stats_received',
/**
* Indicates that a message from another participant is received on data
* channel.
*/
ENDPOINT_MESSAGE_RECEIVED = 'conference.endpoint_message_received',
/**
* Indicates that a message for the remote endpoint statistics has been received on the bridge channel.
*/
ENDPOINT_STATS_RECEIVED = 'conference.endpoint_stats_received',
/**
* Event emitted when a list file is received in the conference. This event is fired when a participant joins
* and the file list is sent to them.
* @param {Map<String, IFileMetadata>} files - The map of files received in the conference with key the file ID.
*/
FILE_SHARING_FILES_RECEIVED = 'conference.file_sharing.files_received',
/**
* Event emitted when a file is added to the conference.
* @param {IFileMetadata} file - The file object containing metadata about the file.
*/
FILE_SHARING_FILE_ADDED = 'conference.file_sharing.file_added',
/**
* Event emitted when a file is removed from the conference.
* @param {String} fileId - The ID of the file that was removed.
*/
FILE_SHARING_FILE_REMOVED = 'conference.file_sharing.file_removed',
/**
* The forwarded sources set is changed.
*
* @param {Array<string>} leavingForwardedSources the sourceNames of all the tracks which are leaving forwarded
* sources
* @param {Array<string>} enteringForwardedSources the sourceNames of all the tracks which are entering forwarded
* sources
*/
FORWARDED_SOURCES_CHANGED = 'conference.forwardedSourcesChanged',
/**
* You are kicked from the conference.
* @param {JitsiParticipant} the participant that initiated the kick.
*/
KICKED = 'conference.kicked',
/**
* The Last N set is changed.
*
* @param {Array<string>|null} leavingEndpointIds the ids of all the endpoints
* which are leaving Last N
* @param {Array<string>|null} enteringEndpointIds the ids of all the endpoints
* which are entering Last N
*/
LAST_N_ENDPOINTS_CHANGED = 'conference.lastNEndpointsChanged',
/**
* A new user joined the lobby room.
*/
LOBBY_USER_JOINED = 'conference.lobby.userJoined',
/**
* A user left the lobby room.
*/
LOBBY_USER_LEFT = 'conference.lobby.userLeft',
/**
* A user from the lobby room has been update.
*/
LOBBY_USER_UPDATED = 'conference.lobby.userUpdated',
/**
* Indicates that the room has been locked or unlocked.
*/
LOCK_STATE_CHANGED = 'conference.lock_state_changed',
/**
* Indicates that the conference had changed to members only enabled/disabled.
* The first argument of this event is a <tt>boolean</tt> which when set to
* <tt>true</tt> means that the conference is running in members only mode.
* You may need to use Lobby if supported to ask for permissions to enter the conference.
*/
MEMBERS_ONLY_CHANGED = 'conference.membersOnlyChanged',
/**
* New text message was received.
*/
MESSAGE_RECEIVED = 'conference.messageReceived',
/**
* Event fired when the conference metadata is updated.
*/
METADATA_UPDATED = 'conference.metadata.updated',
/**
* Event indicates that the current microphone used by the conference is noisy.
*/
NOISY_MIC = 'conference.noisy_mic',
/**
* Indicates that a message from the local user or from the Prosody backend
* was received on the data channel.
*/
NON_PARTICIPANT_MESSAGE_RECEIVED = 'conference.non_participant_message_received',
/**
* Event indicates that the current selected input device has no signal
*/
NO_AUDIO_INPUT = 'conference.no_audio_input',
/**
* Indicates that the conference has switched between JVB and P2P connections.
* The first argument of this event is a <tt>boolean</tt> which when set to
* <tt>true</tt> means that the conference is running on the P2P connection.
*/
P2P_STATUS = 'conference.p2pStatus',
/**
* Indicates that the features of the participant has been changed.
* TODO: there is a spelling mistake in this event name and associated constants
*/
PARTCIPANT_FEATURES_CHANGED = 'conference.partcipant_features_changed',
/**
* Participant was kicked from the conference.
* @param {JitsiParticipant} the participant that initiated the kick.
* @param {JitsiParticipant} the participant that was kicked.
*/
PARTICIPANT_KICKED = 'conference.participant_kicked',
/**
* Indicates that a value of a specific property of a specific participant
* has changed.
*/
PARTICIPANT_PROPERTY_CHANGED = 'conference.participant_property_changed',
/**
* Indicates the state of sources attached to a given remote participant has changed.
*/
PARTICIPANT_SOURCE_UPDATED = 'conference.participant_source_updated',
/**
* Indicates that the permissions for the local participant were updated.
*/
PERMISSIONS_RECEIVED = 'conference.permissions_received',
/**
* Indicates that phone number changed.
*/
PHONE_NUMBER_CHANGED = 'conference.phoneNumberChanged',
/**
* An answer for a pool was received.
*/
POLL_ANSWER_RECEIVED = 'conference.pollAnswerReceived',
/**
* A new poll was received or a poll is loaded from the history.
*/
POLL_RECEIVED = 'conference.pollReceived',
/**
* New private text message was received.
*/
PRIVATE_MESSAGE_RECEIVED = 'conference.privateMessageReceived',
/**
* The conference properties changed.
*/
PROPERTIES_CHANGED = 'conference.propertiesChanged',
/**
* New reaction was received.
*/
REACTION_RECEIVED = 'conference.reactionReceived',
/**
* Indicates that recording state changed.
*/
RECORDER_STATE_CHANGED = 'conference.recorderStateChanged',
/**
* Indicates that the region of the media server (jitsi-videobridge) that we
* are connected to changed (or was initially set).
*/
SERVER_REGION_CHANGED = 'conference.server_region_changed',
/**
* Indicates a user has joined without audio
*/
SILENT_STATUS_CHANGED = 'conference.silentStatusChanged',
/**
* Indicates that start muted settings changed.
*/
START_MUTED_POLICY_CHANGED = 'conference.start_muted_policy_changed',
/**
* Indicates that subject of the conference has changed.
*/
SUBJECT_CHANGED = 'conference.subjectChanged',
/**
* Indicates that DTMF support changed.
*/
SUSPEND_DETECTED = 'conference.suspendDetected',
/**
* Event indicates that local user is talking while he muted himself
*/
TALK_WHILE_MUTED = 'conference.talk_while_muted',
/**
* A new media track was added to the conference. The event provides the
* following parameters to its listeners:
*
* @param {JitsiTrack} track the added JitsiTrack
*/
TRACK_ADDED = 'conference.trackAdded',
/**
* Audio levels of a media track ( attached to the conference) was changed.
*/
TRACK_AUDIO_LEVEL_CHANGED = 'conference.audioLevelsChanged',
/**
* A media track ( attached to the conference) mute status was changed.
* @param {JitsiParticipant|null} the participant that initiated the mute
* if it is a remote mute.
*/
TRACK_MUTE_CHANGED = 'conference.trackMuteChanged',
/**
* The media track was removed from the conference. The event provides the
* following parameters to its listeners:
*
* @param {JitsiTrack} track the removed JitsiTrack
*/
TRACK_REMOVED = 'conference.trackRemoved',
/**
* The source-add for unmuting of a media track was rejected by Jicofo.
*
*/
TRACK_UNMUTE_REJECTED = 'conference.trackUnmuteRejected',
/**
* Notifies for transcription status changes. The event provides the
* following parameters to its listeners:
*
* @param {String} status - The new status.
*/
TRANSCRIPTION_STATUS_CHANGED = 'conference.transcriptionStatusChanged',
/**
* A new user joined the conference.
*/
USER_JOINED = 'conference.userJoined',
/**
* A user has left the conference.
*/
USER_LEFT = 'conference.userLeft',
/**
* User role changed.
*/
USER_ROLE_CHANGED = 'conference.roleChanged',
/**
* User status changed.
*/
USER_STATUS_CHANGED = 'conference.statusChanged',
/**
* Indicates that the video codec of the local video track has changed.
*/
VIDEO_CODEC_CHANGED = 'conference.videoCodecChanged',
/**
* Indicates that video SIP GW state changed.
* @param {VideoSIPGWConstants} status.
*/
VIDEO_SIP_GW_AVAILABILITY_CHANGED = 'conference.videoSIPGWAvailabilityChanged',
/**
* Indicates that video SIP GW Session state changed.
* @param {options} event - {
* {string} address,
* {VideoSIPGWConstants} oldState,
* {VideoSIPGWConstants} newState,
* {string} displayName
* }.
*/
VIDEO_SIP_GW_SESSION_STATE_CHANGED = 'conference.videoSIPGWSessionStateChanged',
/**
* Event indicates that the permission for unmuting video has changed based on the number of video senders in the
* call and the video sender limit configured in Jicofo.
*/
VIDEO_UNMUTE_PERMISSIONS_CHANGED = 'conference.video_unmute_permissions_changed',
/**
* Event indicating we have received a message from the visitors component.
*/
VISITORS_MESSAGE = 'conference.visitors_message',
/**
* Event indicating that our request for promotion was rejected.
*/
VISITORS_REJECTION = 'conference.visitors_rejection',
/**
* Indicates that the conference has support for visitors.
*/
VISITORS_SUPPORTED_CHANGED = 'conference.visitorsSupported',
/**
* An event(library-private) fired when the conference switches the currently active media session.
* @private
*/
_MEDIA_SESSION_ACTIVE_CHANGED = 'conference.media_session.active_changed',
/**
* An event(library-private) fired when a new media session is added to the conference.
* @private
*/
_MEDIA_SESSION_STARTED = 'conference.media_session.started'
}