|
@@ -1,244 +1,244 @@
|
1
|
|
-const XMPPEvents = {
|
|
1
|
+export enum XMPPEvents {
|
2
|
2
|
/**
|
3
|
3
|
* Indicates error while adding ice candidate.
|
4
|
4
|
*/
|
5
|
|
- ADD_ICE_CANDIDATE_FAILED: 'xmpp.add_ice_candidate_failed',
|
|
5
|
+ ADD_ICE_CANDIDATE_FAILED = 'xmpp.add_ice_candidate_failed',
|
6
|
6
|
|
7
|
7
|
// Designates an event indicating that the focus has asked us to mute our
|
8
|
8
|
// audio.
|
9
|
|
- AUDIO_MUTED_BY_FOCUS: 'xmpp.audio_muted_by_focus',
|
|
9
|
+ AUDIO_MUTED_BY_FOCUS = 'xmpp.audio_muted_by_focus',
|
10
|
10
|
|
11
|
11
|
// Designates an event indicating that the focus has asked us to disable our
|
12
|
12
|
// camera.
|
13
|
|
- VIDEO_MUTED_BY_FOCUS: 'xmpp.video_muted_by_focus',
|
14
|
|
- AUTHENTICATION_REQUIRED: 'xmpp.authentication_required',
|
15
|
|
- BRIDGE_DOWN: 'xmpp.bridge_down',
|
|
13
|
+ VIDEO_MUTED_BY_FOCUS = 'xmpp.video_muted_by_focus',
|
|
14
|
+ AUTHENTICATION_REQUIRED = 'xmpp.authentication_required',
|
|
15
|
+ BRIDGE_DOWN = 'xmpp.bridge_down',
|
16
|
16
|
|
17
|
17
|
/**
|
18
|
18
|
* Triggered when 'session-accept' is received from the responder.
|
19
|
19
|
*/
|
20
|
|
- CALL_ACCEPTED: 'xmpp.callaccepted.jingle',
|
|
20
|
+ CALL_ACCEPTED = 'xmpp.callaccepted.jingle',
|
21
|
21
|
|
22
|
22
|
// Designates an event indicating that an offer (e.g. Jingle
|
23
|
23
|
// session-initiate) was received.
|
24
|
|
- CALL_INCOMING: 'xmpp.callincoming.jingle',
|
|
24
|
+ CALL_INCOMING = 'xmpp.callincoming.jingle',
|
25
|
25
|
|
26
|
26
|
// Triggered when Jicofo kills our media session, this can happen while
|
27
|
27
|
// we're still in the MUC, when it decides to terminate the media session.
|
28
|
28
|
// For example when the session is idle for too long, because we're the only
|
29
|
29
|
// person in the conference room.
|
30
|
|
- CALL_ENDED: 'xmpp.callended.jingle',
|
31
|
|
- CHAT_ERROR_RECEIVED: 'xmpp.chat_error_received',
|
32
|
|
- SETTINGS_ERROR_RECEIVED: 'xmpp.settings_error_received',
|
|
30
|
+ CALL_ENDED = 'xmpp.callended.jingle',
|
|
31
|
+ CHAT_ERROR_RECEIVED = 'xmpp.chat_error_received',
|
|
32
|
+ SETTINGS_ERROR_RECEIVED = 'xmpp.settings_error_received',
|
33
|
33
|
|
34
|
34
|
// The conference properties (as advertised by jicofo) have changed
|
35
|
|
- CONFERENCE_PROPERTIES_CHANGED: 'xmpp.conference_properties_changed',
|
|
35
|
+ CONFERENCE_PROPERTIES_CHANGED = 'xmpp.conference_properties_changed',
|
36
|
36
|
|
37
|
37
|
/**
|
38
|
38
|
* This event is triggered when the ICE connects for the first time.
|
39
|
39
|
*/
|
40
|
|
- CONNECTION_ESTABLISHED: 'xmpp.connection.connected',
|
|
40
|
+ CONNECTION_ESTABLISHED = 'xmpp.connection.connected',
|
41
|
41
|
|
42
|
42
|
// Designates an event indicating that the connection to the XMPP server
|
43
|
43
|
// failed.
|
44
|
|
- CONNECTION_FAILED: 'xmpp.connection.failed',
|
|
44
|
+ CONNECTION_FAILED = 'xmpp.connection.failed',
|
45
|
45
|
|
46
|
46
|
// Designates an event indicating that the media (ICE) connection was
|
47
|
47
|
// interrupted. This should go to the RTC module.
|
48
|
|
- CONNECTION_INTERRUPTED: 'xmpp.connection.interrupted',
|
|
48
|
+ CONNECTION_INTERRUPTED = 'xmpp.connection.interrupted',
|
49
|
49
|
|
50
|
50
|
// Designates an event indicating that the media (ICE) connection was
|
51
|
51
|
// restored. This should go to the RTC module.
|
52
|
|
- CONNECTION_RESTORED: 'xmpp.connection.restored',
|
|
52
|
+ CONNECTION_RESTORED = 'xmpp.connection.restored',
|
53
|
53
|
|
54
|
54
|
// Designates an event indicating that the media (ICE) connection failed.
|
55
|
55
|
// This should go to the RTC module.
|
56
|
|
- CONNECTION_ICE_FAILED: 'xmpp.connection.ice.failed',
|
|
56
|
+ CONNECTION_ICE_FAILED = 'xmpp.connection.ice.failed',
|
57
|
57
|
|
58
|
58
|
// Designates an event indicating that the call has been migrated to a different
|
59
|
59
|
// bridge and that the client needs to be restarted for a successful transition.
|
60
|
|
- CONNECTION_RESTARTED: 'xmpp.connection.restart',
|
|
60
|
+ CONNECTION_RESTARTED = 'xmpp.connection.restart',
|
61
|
61
|
|
62
|
62
|
/**
|
63
|
63
|
* Designates an event indicating connection status changes.
|
64
|
64
|
*/
|
65
|
|
- CONNECTION_STATUS_CHANGED: 'xmpp.connection.status.changed',
|
|
65
|
+ CONNECTION_STATUS_CHANGED = 'xmpp.connection.status.changed',
|
66
|
66
|
|
67
|
67
|
// Designates an event indicating that the display name of a participant
|
68
|
68
|
// has changed.
|
69
|
|
- DISPLAY_NAME_CHANGED: 'xmpp.display_name_changed',
|
|
69
|
+ DISPLAY_NAME_CHANGED = 'xmpp.display_name_changed',
|
70
|
70
|
|
71
|
71
|
/**
|
72
|
72
|
* Chat room instance have been added to Strophe.emuc plugin.
|
73
|
73
|
*/
|
74
|
|
- EMUC_ROOM_ADDED: 'xmpp.emuc_room_added',
|
|
74
|
+ EMUC_ROOM_ADDED = 'xmpp.emuc_room_added',
|
75
|
75
|
|
76
|
76
|
/**
|
77
|
77
|
* Chat room instance have been removed from Strophe.emuc plugin.
|
78
|
78
|
*/
|
79
|
|
- EMUC_ROOM_REMOVED: 'xmpp.emuc_room_removed',
|
80
|
|
- ETHERPAD: 'xmpp.etherpad',
|
81
|
|
- FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
|
82
|
|
- FOCUS_LEFT: 'xmpp.focus_left',
|
83
|
|
- GRACEFUL_SHUTDOWN: 'xmpp.graceful_shutdown',
|
|
79
|
+ EMUC_ROOM_REMOVED = 'xmpp.emuc_room_removed',
|
|
80
|
+ ETHERPAD = 'xmpp.etherpad',
|
|
81
|
+ FOCUS_DISCONNECTED = 'xmpp.focus_disconnected',
|
|
82
|
+ FOCUS_LEFT = 'xmpp.focus_left',
|
|
83
|
+ GRACEFUL_SHUTDOWN = 'xmpp.graceful_shutdown',
|
84
|
84
|
|
85
|
85
|
/**
|
86
|
86
|
* Event fired when 'transport-replace' Jingle message has been received,
|
87
|
87
|
* before the new offer is set on the PeerConnection.
|
88
|
88
|
*/
|
89
|
|
- ICE_RESTARTING: 'rtc.ice_restarting',
|
|
89
|
+ ICE_RESTARTING = 'rtc.ice_restarting',
|
90
|
90
|
|
91
|
91
|
/**
|
92
|
92
|
* Event fired after the 'transport-replace' message has been processed
|
93
|
93
|
* and the new offer has been set successfully.
|
94
|
94
|
*/
|
95
|
|
- ICE_RESTART_SUCCESS: 'rtc.ice_restart_success',
|
|
95
|
+ ICE_RESTART_SUCCESS = 'rtc.ice_restart_success',
|
96
|
96
|
|
97
|
97
|
/**
|
98
|
98
|
* Designates an event indicating that we were kicked from the XMPP MUC.
|
99
|
99
|
* @param {boolean} isSelfPresence - whether it is for local participant
|
100
|
100
|
* or another participant.
|
101
|
|
- * @param {string} actorJid - the jid of the participant who was initator
|
|
101
|
+ * @param {string} actorJid - the jid of the participant who was initiator
|
102
|
102
|
* of the kick.
|
103
|
103
|
* @param {?string} participantJid - when it is not a kick for local participant,
|
104
|
104
|
* this is the jid of the participant which was kicked.
|
105
|
105
|
*/
|
106
|
|
- KICKED: 'xmpp.kicked',
|
|
106
|
+ KICKED = 'xmpp.kicked',
|
107
|
107
|
|
108
|
108
|
// Designates an event indicating that our role in the XMPP MUC has changed.
|
109
|
|
- LOCAL_ROLE_CHANGED: 'xmpp.localrole_changed',
|
|
109
|
+ LOCAL_ROLE_CHANGED = 'xmpp.localrole_changed',
|
110
|
110
|
|
111
|
111
|
/**
|
112
|
112
|
* Event fired when the unique meeting id is set.
|
113
|
113
|
*/
|
114
|
|
- MEETING_ID_SET: 'xmpp.meeting_id_set',
|
|
114
|
+ MEETING_ID_SET = 'xmpp.meeting_id_set',
|
115
|
115
|
|
116
|
116
|
// Designates an event indicating that an XMPP message in the MUC was
|
117
|
117
|
// received.
|
118
|
|
- MESSAGE_RECEIVED: 'xmpp.message_received',
|
|
118
|
+ MESSAGE_RECEIVED = 'xmpp.message_received',
|
119
|
119
|
|
120
|
120
|
// Designates an event indicating that an invite XMPP message in the MUC was
|
121
|
121
|
// received.
|
122
|
|
- INVITE_MESSAGE_RECEIVED: 'xmpp.invite_message_received',
|
|
122
|
+ INVITE_MESSAGE_RECEIVED = 'xmpp.invite_message_received',
|
123
|
123
|
|
124
|
124
|
// Designates an event indicating that a private XMPP message in the MUC was
|
125
|
125
|
// received.
|
126
|
|
- PRIVATE_MESSAGE_RECEIVED: 'xmpp.private_message_received',
|
|
126
|
+ PRIVATE_MESSAGE_RECEIVED = 'xmpp.private_message_received',
|
127
|
127
|
|
128
|
128
|
// Designates an event indicating that a bot participant type had changed
|
129
|
|
- MUC_MEMBER_BOT_TYPE_CHANGED: 'xmpp.muc_member_bot_type_changed',
|
|
129
|
+ MUC_MEMBER_BOT_TYPE_CHANGED = 'xmpp.muc_member_bot_type_changed',
|
130
|
130
|
|
131
|
131
|
// Designates an event indicating that the XMPP MUC was destroyed.
|
132
|
|
- MUC_DESTROYED: 'xmpp.muc_destroyed',
|
|
132
|
+ MUC_DESTROYED = 'xmpp.muc_destroyed',
|
133
|
133
|
|
134
|
134
|
// Designates an event indicating that we are currently in process of joining the XMPP MUC.
|
135
|
|
- MUC_JOIN_IN_PROGRESS: 'xmpp.muc_join_in_progress',
|
|
135
|
+ MUC_JOIN_IN_PROGRESS = 'xmpp.muc_join_in_progress',
|
136
|
136
|
|
137
|
137
|
// Designates an event indicating that we have joined the XMPP MUC.
|
138
|
|
- MUC_JOINED: 'xmpp.muc_joined',
|
|
138
|
+ MUC_JOINED = 'xmpp.muc_joined',
|
139
|
139
|
|
140
|
140
|
// Designates an event indicating that a participant joined the XMPP MUC.
|
141
|
|
- MUC_MEMBER_JOINED: 'xmpp.muc_member_joined',
|
|
141
|
+ MUC_MEMBER_JOINED = 'xmpp.muc_member_joined',
|
142
|
142
|
|
143
|
143
|
// Designates an event indicating that a participant left the XMPP MUC.
|
144
|
|
- MUC_MEMBER_LEFT: 'xmpp.muc_member_left',
|
|
144
|
+ MUC_MEMBER_LEFT = 'xmpp.muc_member_left',
|
145
|
145
|
|
146
|
146
|
// Designates an event indicating that a participant joined the lobby XMPP MUC.
|
147
|
|
- MUC_LOBBY_MEMBER_JOINED: 'xmpp.muc_lobby_member_joined',
|
|
147
|
+ MUC_LOBBY_MEMBER_JOINED = 'xmpp.muc_lobby_member_joined',
|
148
|
148
|
|
149
|
149
|
// Designates an event indicating that a participant in the lobby XMPP MUC has been updated
|
150
|
|
- MUC_LOBBY_MEMBER_UPDATED: 'xmpp.muc_lobby_member_updated',
|
|
150
|
+ MUC_LOBBY_MEMBER_UPDATED = 'xmpp.muc_lobby_member_updated',
|
151
|
151
|
|
152
|
152
|
// Designates an event indicating that a participant left the XMPP MUC.
|
153
|
|
- MUC_LOBBY_MEMBER_LEFT: 'xmpp.muc_lobby_member_left',
|
|
153
|
+ MUC_LOBBY_MEMBER_LEFT = 'xmpp.muc_lobby_member_left',
|
154
|
154
|
|
155
|
155
|
// Designates an event indicating that a participant was denied access to a conference from the lobby XMPP MUC.
|
156
|
|
- MUC_DENIED_ACCESS: 'xmpp.muc_denied access',
|
|
156
|
+ MUC_DENIED_ACCESS = 'xmpp.muc_denied access',
|
157
|
157
|
|
158
|
158
|
// Designates an event indicating that local participant left the muc
|
159
|
|
- MUC_LEFT: 'xmpp.muc_left',
|
|
159
|
+ MUC_LEFT = 'xmpp.muc_left',
|
160
|
160
|
|
161
|
161
|
// Designates an event indicating that the MUC role of a participant has
|
162
|
162
|
// changed.
|
163
|
|
- MUC_ROLE_CHANGED: 'xmpp.muc_role_changed',
|
|
163
|
+ MUC_ROLE_CHANGED = 'xmpp.muc_role_changed',
|
164
|
164
|
|
165
|
165
|
// Designates an event indicating that the MUC has been locked or unlocked.
|
166
|
|
- MUC_LOCK_CHANGED: 'xmpp.muc_lock_changed',
|
|
166
|
+ MUC_LOCK_CHANGED = 'xmpp.muc_lock_changed',
|
167
|
167
|
|
168
|
168
|
// Designates an event indicating that the MUC members only config has changed.
|
169
|
|
- MUC_MEMBERS_ONLY_CHANGED: 'xmpp.muc_members_only_changed',
|
|
169
|
+ MUC_MEMBERS_ONLY_CHANGED = 'xmpp.muc_members_only_changed',
|
170
|
170
|
|
171
|
171
|
// Designates an event indicating that a participant in the XMPP MUC has
|
172
|
172
|
// advertised that they have audio muted (or unmuted).
|
173
|
|
- PARTICIPANT_AUDIO_MUTED: 'xmpp.audio_muted',
|
|
173
|
+ PARTICIPANT_AUDIO_MUTED = 'xmpp.audio_muted',
|
174
|
174
|
|
175
|
175
|
// Designates an event indicating that a participant in the XMPP MUC has
|
176
|
176
|
// advertised that they have video muted (or unmuted).
|
177
|
|
- PARTICIPANT_VIDEO_MUTED: 'xmpp.video_muted',
|
|
177
|
+ PARTICIPANT_VIDEO_MUTED = 'xmpp.video_muted',
|
178
|
178
|
|
179
|
179
|
// Designates an event indicating that the video type (e.g. 'camera' or
|
180
|
180
|
// 'screen') for a participant has changed.
|
181
|
|
- // Note: currently this event fires every time we receive presence from
|
|
181
|
+ // Note = currently this event fires every time we receive presence from
|
182
|
182
|
// someone (regardless of whether or not the "video type" changed).
|
183
|
|
- PARTICIPANT_VIDEO_TYPE_CHANGED: 'xmpp.video_type',
|
|
183
|
+ PARTICIPANT_VIDEO_TYPE_CHANGED = 'xmpp.video_type',
|
184
|
184
|
|
185
|
185
|
/**
|
186
|
186
|
* Indicates that the features of the participant has been changed.
|
187
|
187
|
*/
|
188
|
|
- PARTICIPANT_FEATURES_CHANGED: 'xmpp.participant_features_changed',
|
189
|
|
- PASSWORD_REQUIRED: 'xmpp.password_required',
|
|
188
|
+ PARTICIPANT_FEATURES_CHANGED = 'xmpp.participant_features_changed',
|
|
189
|
+ PASSWORD_REQUIRED = 'xmpp.password_required',
|
190
|
190
|
|
191
|
191
|
/**
|
192
|
192
|
* Indicates that phone number changed.
|
193
|
193
|
*/
|
194
|
|
- PHONE_NUMBER_CHANGED: 'conference.phoneNumberChanged',
|
195
|
|
- PRESENCE_RECEIVED: 'xmpp.presence_received',
|
196
|
|
- PRESENCE_STATUS: 'xmpp.presence_status',
|
197
|
|
- PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
|
|
194
|
+ PHONE_NUMBER_CHANGED = 'conference.phoneNumberChanged',
|
|
195
|
+ PRESENCE_RECEIVED = 'xmpp.presence_received',
|
|
196
|
+ PRESENCE_STATUS = 'xmpp.presence_status',
|
|
197
|
+ PROMPT_FOR_LOGIN = 'xmpp.prompt_for_login',
|
198
|
198
|
|
199
|
199
|
// xmpp is connected and obtained user media
|
200
|
|
- READY_TO_JOIN: 'xmpp.ready_to_join',
|
|
200
|
+ READY_TO_JOIN = 'xmpp.ready_to_join',
|
201
|
201
|
|
202
|
202
|
/**
|
203
|
203
|
* Indicates that recording state changed.
|
204
|
204
|
*/
|
205
|
|
- RECORDER_STATE_CHANGED: 'xmpp.recorderStateChanged',
|
|
205
|
+ RECORDER_STATE_CHANGED = 'xmpp.recorderStateChanged',
|
206
|
206
|
|
207
|
207
|
// Designates an event indicating that we received statistics from a
|
208
|
208
|
// participant in the MUC.
|
209
|
|
- REMOTE_STATS: 'xmpp.remote_stats',
|
|
209
|
+ REMOTE_STATS = 'xmpp.remote_stats',
|
210
|
210
|
|
211
|
211
|
/**
|
212
|
212
|
* Indicates that the offer / answer renegotiation has failed.
|
213
|
213
|
*/
|
214
|
|
- RENEGOTIATION_FAILED: 'xmpp.renegotiation_failed',
|
215
|
|
- RESERVATION_ERROR: 'xmpp.room_reservation_error',
|
216
|
|
- ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
|
217
|
|
- ROOM_CONNECT_NOT_ALLOWED_ERROR: 'xmpp.room_connect_error.not_allowed',
|
218
|
|
- ROOM_JOIN_ERROR: 'xmpp.room_join_error',
|
219
|
|
- ROOM_CONNECT_MEMBERS_ONLY_ERROR: 'xmpp.room_connect_error.members_only',
|
|
214
|
+ RENEGOTIATION_FAILED = 'xmpp.renegotiation_failed',
|
|
215
|
+ RESERVATION_ERROR = 'xmpp.room_reservation_error',
|
|
216
|
+ ROOM_CONNECT_ERROR = 'xmpp.room_connect_error',
|
|
217
|
+ ROOM_CONNECT_NOT_ALLOWED_ERROR = 'xmpp.room_connect_error.not_allowed',
|
|
218
|
+ ROOM_JOIN_ERROR = 'xmpp.room_join_error',
|
|
219
|
+ ROOM_CONNECT_MEMBERS_ONLY_ERROR = 'xmpp.room_connect_error.members_only',
|
220
|
220
|
|
221
|
221
|
/**
|
222
|
222
|
* Indicates that max users limit has been reached.
|
223
|
223
|
*/
|
224
|
|
- ROOM_MAX_USERS_ERROR: 'xmpp.room_max_users_error',
|
|
224
|
+ ROOM_MAX_USERS_ERROR = 'xmpp.room_max_users_error',
|
225
|
225
|
|
226
|
226
|
// Designates an event indicating that we sent an XMPP message to the MUC.
|
227
|
|
- SENDING_CHAT_MESSAGE: 'xmpp.sending_chat_message',
|
|
227
|
+ SENDING_CHAT_MESSAGE = 'xmpp.sending_chat_message',
|
228
|
228
|
|
229
|
229
|
// Designates an event indicating that we sent a private XMPP message to
|
230
|
230
|
// a specific user of the muc.
|
231
|
|
- SENDING_PRIVATE_CHAT_MESSAGE: 'xmpp.sending_private_chat_message',
|
|
231
|
+ SENDING_PRIVATE_CHAT_MESSAGE = 'xmpp.sending_private_chat_message',
|
232
|
232
|
|
233
|
233
|
/**
|
234
|
234
|
* Event fired after receiving the confirmation about session accept.
|
235
|
235
|
*/
|
236
|
|
- SESSION_ACCEPT: 'xmpp.session_accept',
|
|
236
|
+ SESSION_ACCEPT = 'xmpp.session_accept',
|
237
|
237
|
|
238
|
238
|
/**
|
239
|
239
|
* Event fired if we receive an error after sending the session accept.
|
240
|
240
|
*/
|
241
|
|
- SESSION_ACCEPT_ERROR: 'xmpp.session_accept_error',
|
|
241
|
+ SESSION_ACCEPT_ERROR = 'xmpp.session_accept_error',
|
242
|
242
|
|
243
|
243
|
/**
|
244
|
244
|
* Event fired when we do not get our 'session-accept' acknowledged by
|
|
@@ -250,94 +250,94 @@ const XMPPEvents = {
|
250
|
250
|
* Jicofo does send the RESULT immediately without any condition, so missing
|
251
|
251
|
* packets means that most likely it has never seen our IQ.
|
252
|
252
|
*/
|
253
|
|
- SESSION_ACCEPT_TIMEOUT: 'xmpp.session_accept_timeout',
|
|
253
|
+ SESSION_ACCEPT_TIMEOUT = 'xmpp.session_accept_timeout',
|
254
|
254
|
|
255
|
255
|
/**
|
256
|
256
|
* Event fired after successful sending of jingle source-add.
|
257
|
257
|
*/
|
258
|
|
- SOURCE_ADD: 'xmpp.source_add',
|
|
258
|
+ SOURCE_ADD = 'xmpp.source_add',
|
259
|
259
|
|
260
|
260
|
/**
|
261
|
261
|
* Event fired after receiving an error sending of jingle source-add.
|
262
|
262
|
*/
|
263
|
|
- SOURCE_ADD_ERROR: 'xmpp.source_add_error',
|
|
263
|
+ SOURCE_ADD_ERROR = 'xmpp.source_add_error',
|
264
|
264
|
|
265
|
265
|
/**
|
266
|
266
|
* Event fired after successful sending of jingle source-remove.
|
267
|
267
|
*/
|
268
|
|
- SOURCE_REMOVE: 'xmpp.source_remove',
|
|
268
|
+ SOURCE_REMOVE = 'xmpp.source_remove',
|
269
|
269
|
|
270
|
270
|
/**
|
271
|
271
|
* Event fired after receiving an error sending of jingle source-remove.
|
272
|
272
|
*/
|
273
|
|
- SOURCE_REMOVE_ERROR: 'xmpp.source_remove_error',
|
|
273
|
+ SOURCE_REMOVE_ERROR = 'xmpp.source_remove_error',
|
274
|
274
|
|
275
|
275
|
/**
|
276
|
276
|
* Event fired when speaker stats update message is received.
|
277
|
277
|
*/
|
278
|
|
- SPEAKER_STATS_RECEIVED: 'xmpp.speaker_stats_received',
|
|
278
|
+ SPEAKER_STATS_RECEIVED = 'xmpp.speaker_stats_received',
|
279
|
279
|
|
280
|
280
|
/**
|
281
|
281
|
* Event fired when conference creation timestamp is received.
|
282
|
282
|
*/
|
283
|
|
- CONFERENCE_TIMESTAMP_RECEIVED: 'xmpp.conference_timestamp_received',
|
|
283
|
+ CONFERENCE_TIMESTAMP_RECEIVED = 'xmpp.conference_timestamp_received',
|
284
|
284
|
|
285
|
285
|
/**
|
286
|
286
|
* Event fired when we receive a message for AV moderation approved for the local participant.
|
287
|
287
|
*/
|
288
|
|
- AV_MODERATION_APPROVED: 'xmpp.av_moderation.approved',
|
|
288
|
+ AV_MODERATION_APPROVED = 'xmpp.av_moderation.approved',
|
289
|
289
|
|
290
|
290
|
/**
|
291
|
291
|
* Event fired when we receive a message for AV moderation rejected for the local participant.
|
292
|
292
|
*/
|
293
|
|
- AV_MODERATION_REJECTED: 'xmpp.av_moderation.rejected',
|
|
293
|
+ AV_MODERATION_REJECTED = 'xmpp.av_moderation.rejected',
|
294
|
294
|
|
295
|
295
|
/**
|
296
|
296
|
* Event fired when we receive a message for AV moderation.
|
297
|
297
|
*/
|
298
|
|
- AV_MODERATION_RECEIVED: 'xmpp.av_moderation.received',
|
|
298
|
+ AV_MODERATION_RECEIVED = 'xmpp.av_moderation.received',
|
299
|
299
|
|
300
|
300
|
/**
|
301
|
301
|
* Event fired when the moderation enable/disable changes.
|
302
|
302
|
*/
|
303
|
|
- AV_MODERATION_CHANGED: 'xmpp.av_moderation.changed',
|
|
303
|
+ AV_MODERATION_CHANGED = 'xmpp.av_moderation.changed',
|
304
|
304
|
|
305
|
305
|
/**
|
306
|
306
|
* Event fired when we receive message that a new jid was approved.
|
307
|
307
|
*/
|
308
|
|
- AV_MODERATION_PARTICIPANT_APPROVED: 'xmpp.av_moderation.participant.approved',
|
|
308
|
+ AV_MODERATION_PARTICIPANT_APPROVED = 'xmpp.av_moderation.participant.approved',
|
309
|
309
|
|
310
|
310
|
/**
|
311
|
311
|
* Event fired when we receive message that a new jid was approved.
|
312
|
312
|
*/
|
313
|
|
- AV_MODERATION_PARTICIPANT_REJECTED: 'xmpp.av_moderation.participant.rejected',
|
|
313
|
+ AV_MODERATION_PARTICIPANT_REJECTED = 'xmpp.av_moderation.participant.rejected',
|
314
|
314
|
|
315
|
315
|
/**
|
316
|
316
|
* Event fired when a participant is requested to join a given (breakout) room.
|
317
|
317
|
*/
|
318
|
|
- BREAKOUT_ROOMS_MOVE_TO_ROOM: 'xmpp.breakout-rooms.move-to-room',
|
|
318
|
+ BREAKOUT_ROOMS_MOVE_TO_ROOM = 'xmpp.breakout-rooms.move-to-room',
|
319
|
319
|
|
320
|
320
|
/**
|
321
|
321
|
* Event fired when we receive a message for breakout rooms.
|
322
|
322
|
*/
|
323
|
|
- BREAKOUT_ROOMS_EVENT: 'xmpp.breakout-rooms.event',
|
|
323
|
+ BREAKOUT_ROOMS_EVENT = 'xmpp.breakout-rooms.event',
|
324
|
324
|
|
325
|
325
|
/**
|
326
|
326
|
* Event fired when the breakout rooms data was updated.
|
327
|
327
|
*/
|
328
|
|
- BREAKOUT_ROOMS_UPDATED: 'xmpp.breakout-rooms.updated',
|
|
328
|
+ BREAKOUT_ROOMS_UPDATED = 'xmpp.breakout-rooms.updated',
|
329
|
329
|
|
330
|
330
|
// Designates an event indicating that we should join the conference with
|
331
|
331
|
// audio and/or video muted.
|
332
|
|
- START_MUTED_FROM_FOCUS: 'xmpp.start_muted_from_focus',
|
|
332
|
+ START_MUTED_FROM_FOCUS = 'xmpp.start_muted_from_focus',
|
333
|
333
|
|
334
|
334
|
// Designates an event indicating that the subject of the XMPP MUC has
|
335
|
335
|
// changed.
|
336
|
|
- SUBJECT_CHANGED: 'xmpp.subject_changed',
|
|
336
|
+ SUBJECT_CHANGED = 'xmpp.subject_changed',
|
337
|
337
|
|
338
|
338
|
// FIXME: how does it belong to XMPP ? - it's detected by the PeerConnection
|
339
|
339
|
// suspending detected
|
340
|
|
- SUSPEND_DETECTED: 'xmpp.suspend_detected',
|
|
340
|
+ SUSPEND_DETECTED = 'xmpp.suspend_detected',
|
341
|
341
|
|
342
|
342
|
/**
|
343
|
343
|
* Notifies for transcription status changes. The event provides the
|
|
@@ -345,12 +345,12 @@ const XMPPEvents = {
|
345
|
345
|
*
|
346
|
346
|
* @param {String} status - The new status.
|
347
|
347
|
*/
|
348
|
|
- TRANSCRIPTION_STATUS_CHANGED: 'xmpp.transcription_status_changed',
|
|
348
|
+ TRANSCRIPTION_STATUS_CHANGED = 'xmpp.transcription_status_changed',
|
349
|
349
|
|
350
|
350
|
/**
|
351
|
351
|
* Event fired when 'transport-info' with new ICE candidates is received.
|
352
|
352
|
*/
|
353
|
|
- TRANSPORT_INFO: 'xmpp.transportinfo.jingle',
|
|
353
|
+ TRANSPORT_INFO = 'xmpp.transportinfo.jingle',
|
354
|
354
|
|
355
|
355
|
/**
|
356
|
356
|
* Indicates that video SIP GW state changed.
|
|
@@ -358,7 +358,7 @@ const XMPPEvents = {
|
358
|
358
|
* @param {VideoSIPGWConstants} status - Any of the following statuses:
|
359
|
359
|
* STATUS_BUSY, STATUS_AVAILABLE or STATUS_UNDEFINED.
|
360
|
360
|
*/
|
361
|
|
- VIDEO_SIP_GW_AVAILABILITY_CHANGED: 'xmpp.videoSIPGWAvailabilityChanged',
|
|
361
|
+ VIDEO_SIP_GW_AVAILABILITY_CHANGED = 'xmpp.videoSIPGWAvailabilityChanged',
|
362
|
362
|
|
363
|
363
|
/**
|
364
|
364
|
* Indicates that video SIP GW Session state changed.
|
|
@@ -368,18 +368,16 @@ const XMPPEvents = {
|
368
|
368
|
*
|
369
|
369
|
* @param {options} event - {address, oldState, newState, displayName}.
|
370
|
370
|
*/
|
371
|
|
- VIDEO_SIP_GW_SESSION_STATE_CHANGED:
|
372
|
|
- 'xmpp.videoSIPGWSessionStateChanged',
|
|
371
|
+ VIDEO_SIP_GW_SESSION_STATE_CHANGED = 'xmpp.videoSIPGWSessionStateChanged',
|
373
|
372
|
|
374
|
373
|
// Designates an event indicating that the local ICE connection state has
|
375
|
374
|
// changed.
|
376
|
|
- ICE_CONNECTION_STATE_CHANGED: 'xmpp.ice_connection_state_changed',
|
|
375
|
+ ICE_CONNECTION_STATE_CHANGED = 'xmpp.ice_connection_state_changed',
|
377
|
376
|
|
378
|
377
|
/**
|
379
|
378
|
* Event which is emitted when the body in an XMPP message in the MUC
|
380
|
379
|
* contains JSON
|
|
380
|
+ * TODO: this event contains a typo (xmmp vs xmpp) but it's unlikely this can be changed now
|
381
|
381
|
*/
|
382
|
|
- JSON_MESSAGE_RECEIVED: 'xmmp.json_message_received'
|
|
382
|
+ JSON_MESSAGE_RECEIVED = 'xmmp.json_message_received'
|
383
|
383
|
};
|
384
|
|
-
|
385
|
|
-module.exports = XMPPEvents;
|