|
@@ -1,4 +1,18 @@
|
1
|
1
|
var XMPPEvents = {
|
|
2
|
+ /**
|
|
3
|
+ * Indicates error while adding ice candidate.
|
|
4
|
+ */
|
|
5
|
+ ADD_ICE_CANDIDATE_FAILED: "xmpp.add_ice_candidate_failed",
|
|
6
|
+ // Designates an event indicating that the focus has asked us to mute our
|
|
7
|
+ // audio.
|
|
8
|
+ AUDIO_MUTED_BY_FOCUS: "xmpp.audio_muted_by_focus",
|
|
9
|
+ AUTHENTICATION_REQUIRED: "xmpp.authentication_required",
|
|
10
|
+ BRIDGE_DOWN: "xmpp.bridge_down",
|
|
11
|
+ // Designates an event indicating that an offer (e.g. Jingle
|
|
12
|
+ // session-initiate) was received.
|
|
13
|
+ CALL_INCOMING: "xmpp.callincoming.jingle",
|
|
14
|
+ CHAT_ERROR_RECEIVED: "xmpp.chat_error_received",
|
|
15
|
+ CONFERENCE_SETUP_FAILED: "xmpp.conference_setup_failed",
|
2
|
16
|
// Designates an event indicating that the connection to the XMPP server
|
3
|
17
|
// failed.
|
4
|
18
|
CONNECTION_FAILED: "xmpp.connection.failed",
|
|
@@ -8,11 +22,34 @@ var XMPPEvents = {
|
8
|
22
|
// Designates an event indicating that the media (ICE) connection was
|
9
|
23
|
// restored. This should go to the RTC module.
|
10
|
24
|
CONNECTION_RESTORED: "xmpp.connection.restored",
|
11
|
|
- // Designates an event indicating that an offer (e.g. Jingle
|
12
|
|
- // session-initiate) was received.
|
13
|
|
- CALL_INCOMING: "xmpp.callincoming.jingle",
|
|
25
|
+ // TODO: only used in a hack, should probably be removed.
|
|
26
|
+ CREATE_ANSWER_ERROR: 'xmpp.create_answer_error',
|
|
27
|
+ /**
|
|
28
|
+ * Indicates error while create answer call.
|
|
29
|
+ */
|
|
30
|
+ CREATE_ANSWER_FAILED: "xmpp.create_answer_failed",
|
|
31
|
+ /**
|
|
32
|
+ * Indicates error while create offer call.
|
|
33
|
+ */
|
|
34
|
+ CREATE_OFFER_FAILED: "xmpp.create_offer_failed",
|
|
35
|
+ // Designates an event indicating that the display name of a participant
|
|
36
|
+ // has changed.
|
|
37
|
+ DISPLAY_NAME_CHANGED: "xmpp.display_name_changed",
|
|
38
|
+ DISPOSE_CONFERENCE: "xmpp.dispose_conference",
|
|
39
|
+ ETHERPAD: "xmpp.etherpad",
|
|
40
|
+ FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
|
|
41
|
+ FOCUS_LEFT: "xmpp.focus_left",
|
|
42
|
+ GRACEFUL_SHUTDOWN: "xmpp.graceful_shutdown",
|
|
43
|
+ JINGLE_FATAL_ERROR: 'xmpp.jingle_fatal_error',
|
14
|
44
|
// Designates an event indicating that we were kicked from the XMPP MUC.
|
15
|
45
|
KICKED: "xmpp.kicked",
|
|
46
|
+ // Designates an event indicating that our role in the XMPP MUC has changed.
|
|
47
|
+ LOCAL_ROLE_CHANGED: "xmpp.localrole_changed",
|
|
48
|
+ // Designates an event indicating that an XMPP message in the MUC was
|
|
49
|
+ // received.
|
|
50
|
+ MESSAGE_RECEIVED: "xmpp.message_received",
|
|
51
|
+ // Designates an event indicating that the XMPP MUC was destroyed.
|
|
52
|
+ MUC_DESTROYED: "xmpp.muc_destroyed",
|
16
|
53
|
// Designates an event indicating that we have joined the XMPP MUC.
|
17
|
54
|
MUC_JOINED: "xmpp.muc_joined",
|
18
|
55
|
// Designates an event indicating that a participant joined the XMPP MUC.
|
|
@@ -22,108 +59,70 @@ var XMPPEvents = {
|
22
|
59
|
// Designates an event indicating that the MUC role of a participant has
|
23
|
60
|
// changed.
|
24
|
61
|
MUC_ROLE_CHANGED: "xmpp.muc_role_changed",
|
25
|
|
- // Designates an event indicating that the XMPP MUC was destroyed.
|
26
|
|
- MUC_DESTROYED: "xmpp.muc_destroyed",
|
27
|
|
- // Designates an event indicating that the display name of a participant
|
28
|
|
- // has changed.
|
29
|
|
- DISPLAY_NAME_CHANGED: "xmpp.display_name_changed",
|
30
|
|
- // Designates an event indicating that we received statistics from a
|
31
|
|
- // participant in the MUC.
|
32
|
|
- REMOTE_STATS: "xmpp.remote_stats",
|
33
|
|
- // Designates an event indicating that our role in the XMPP MUC has changed.
|
34
|
|
- LOCAL_ROLE_CHANGED: "xmpp.localrole_changed",
|
35
|
|
- // Designates an event indicating that the subject of the XMPP MUC has
|
36
|
|
- // changed.
|
37
|
|
- SUBJECT_CHANGED: "xmpp.subject_changed",
|
38
|
|
- // Designates an event indicating that an XMPP message in the MUC was
|
39
|
|
- // received.
|
40
|
|
- MESSAGE_RECEIVED: "xmpp.message_received",
|
41
|
|
- // Designates an event indicating that we sent an XMPP message to the MUC.
|
42
|
|
- SENDING_CHAT_MESSAGE: "xmpp.sending_chat_message",
|
43
|
|
- // Designates an event indicating that the video type (e.g. 'camera' or
|
44
|
|
- // 'screen') for a participant has changed.
|
45
|
|
- // Note: currently this event fires every time we receive presence from
|
46
|
|
- // someone (regardless of whether or not the "video type" changed).
|
47
|
|
- PARTICIPANT_VIDEO_TYPE_CHANGED: "xmpp.video_type",
|
48
|
62
|
// Designates an event indicating that a participant in the XMPP MUC has
|
49
|
63
|
// advertised that they have audio muted (or unmuted).
|
50
|
64
|
PARTICIPANT_AUDIO_MUTED: "xmpp.audio_muted",
|
51
|
65
|
// Designates an event indicating that a participant in the XMPP MUC has
|
52
|
66
|
// advertised that they have video muted (or unmuted).
|
53
|
67
|
PARTICIPANT_VIDEO_MUTED: "xmpp.video_muted",
|
54
|
|
- // Designates an event indicating that the focus has asked us to mute our
|
55
|
|
- // audio.
|
56
|
|
- AUDIO_MUTED_BY_FOCUS: "xmpp.audio_muted_by_focus",
|
57
|
|
- // Designates an event indicating that we should join the conference with
|
58
|
|
- // audio and/or video muted.
|
59
|
|
- START_MUTED_FROM_FOCUS: "xmpp.start_muted_from_focus",
|
60
|
|
-
|
61
|
|
-
|
62
|
|
- PEERCONNECTION_READY: "xmpp.peerconnection_ready",
|
63
|
|
- CONFERENCE_SETUP_FAILED: "xmpp.conference_setup_failed",
|
|
68
|
+ // Designates an event indicating that the video type (e.g. 'camera' or
|
|
69
|
+ // 'screen') for a participant has changed.
|
|
70
|
+ // Note: currently this event fires every time we receive presence from
|
|
71
|
+ // someone (regardless of whether or not the "video type" changed).
|
|
72
|
+ PARTICIPANT_VIDEO_TYPE_CHANGED: "xmpp.video_type",
|
64
|
73
|
PASSWORD_REQUIRED: "xmpp.password_required",
|
65
|
|
- AUTHENTICATION_REQUIRED: "xmpp.authentication_required",
|
66
|
|
- CHAT_ERROR_RECEIVED: "xmpp.chat_error_received",
|
67
|
|
- ETHERPAD: "xmpp.etherpad",
|
68
|
|
- BRIDGE_DOWN: "xmpp.bridge_down",
|
|
74
|
+ PEERCONNECTION_READY: "xmpp.peerconnection_ready",
|
|
75
|
+ /**
|
|
76
|
+ * Indicates that phone number changed.
|
|
77
|
+ */
|
|
78
|
+ PHONE_NUMBER_CHANGED: "conference.phoneNumberChanged",
|
69
|
79
|
PRESENCE_STATUS: "xmpp.presence_status",
|
70
|
|
- RESERVATION_ERROR: "xmpp.room_reservation_error",
|
71
|
|
- DISPOSE_CONFERENCE: "xmpp.dispose_conference",
|
72
|
|
- GRACEFUL_SHUTDOWN: "xmpp.graceful_shutdown",
|
73
|
|
- // TODO: only used in a hack, should probably be removed.
|
74
|
|
- SET_LOCAL_DESCRIPTION_ERROR: 'xmpp.set_local_description_error',
|
75
|
|
- // TODO: only used in a hack, should probably be removed.
|
76
|
|
- SET_REMOTE_DESCRIPTION_ERROR: 'xmpp.set_remote_description_error',
|
77
|
|
- // TODO: only used in a hack, should probably be removed.
|
78
|
|
- CREATE_ANSWER_ERROR: 'xmpp.create_answer_error',
|
79
|
|
- JINGLE_FATAL_ERROR: 'xmpp.jingle_fatal_error',
|
80
|
80
|
PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
|
81
|
|
- FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
|
82
|
|
- ROOM_JOIN_ERROR: 'xmpp.room_join_error',
|
83
|
|
- ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
|
84
|
81
|
// xmpp is connected and obtained user media
|
85
|
82
|
READY_TO_JOIN: 'xmpp.ready_to_join',
|
86
|
|
- FOCUS_LEFT: "xmpp.focus_left",
|
87
|
|
- REMOTE_STREAM_RECEIVED: "xmpp.remote_stream_received",
|
88
|
|
- /**
|
89
|
|
- * Indicates that remote stream has been removed from the conference.
|
90
|
|
- */
|
91
|
|
- REMOTE_STREAM_REMOVED: "xmpp.remote_stream_removed",
|
92
|
83
|
/**
|
93
|
84
|
* Indicates that recording state changed.
|
94
|
85
|
*/
|
95
|
86
|
RECORDING_STATE_CHANGED: "xmpp.recordingStateChanged",
|
|
87
|
+ // Designates an event indicating that we received statistics from a
|
|
88
|
+ // participant in the MUC.
|
|
89
|
+ REMOTE_STATS: "xmpp.remote_stats",
|
|
90
|
+ REMOTE_STREAM_RECEIVED: "xmpp.remote_stream_received",
|
96
|
91
|
/**
|
97
|
|
- * Indicates that phone number changed.
|
|
92
|
+ * Indicates that remote stream has been removed from the conference.
|
98
|
93
|
*/
|
99
|
|
- PHONE_NUMBER_CHANGED: "conference.phoneNumberChanged",
|
|
94
|
+ REMOTE_STREAM_REMOVED: "xmpp.remote_stream_removed",
|
|
95
|
+ RESERVATION_ERROR: "xmpp.room_reservation_error",
|
|
96
|
+ ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
|
|
97
|
+ ROOM_JOIN_ERROR: 'xmpp.room_join_error',
|
100
|
98
|
/**
|
101
|
|
- * Indicates error while create offer call.
|
|
99
|
+ * Indicates that max users limit has been reached.
|
102
|
100
|
*/
|
103
|
|
- CREATE_OFFER_FAILED: "xmpp.create_offer_failed",
|
|
101
|
+ ROOM_MAX_USERS_ERROR: "xmpp.room_max_users_error",
|
|
102
|
+ // Designates an event indicating that we sent an XMPP message to the MUC.
|
|
103
|
+ SENDING_CHAT_MESSAGE: "xmpp.sending_chat_message",
|
104
|
104
|
/**
|
105
|
|
- * Indicates error while create answer call.
|
|
105
|
+ * Indicates that the local sendrecv streams in local SDP are changed.
|
106
|
106
|
*/
|
107
|
|
- CREATE_ANSWER_FAILED: "xmpp.create_answer_failed",
|
|
107
|
+ SENDRECV_STREAMS_CHANGED: "xmpp.sendrecv_streams_changed",
|
|
108
|
+ // TODO: only used in a hack, should probably be removed.
|
|
109
|
+ SET_LOCAL_DESCRIPTION_ERROR: 'xmpp.set_local_description_error',
|
|
110
|
+
|
108
|
111
|
/**
|
109
|
112
|
* Indicates error while set local description.
|
110
|
113
|
*/
|
111
|
114
|
SET_LOCAL_DESCRIPTION_FAILED: "xmpp.set_local_description_failed",
|
|
115
|
+ // TODO: only used in a hack, should probably be removed.
|
|
116
|
+ SET_REMOTE_DESCRIPTION_ERROR: 'xmpp.set_remote_description_error',
|
112
|
117
|
/**
|
113
|
118
|
* Indicates error while set remote description.
|
114
|
119
|
*/
|
115
|
120
|
SET_REMOTE_DESCRIPTION_FAILED: "xmpp.set_remote_description_failed",
|
116
|
|
- /**
|
117
|
|
- * Indicates error while adding ice candidate.
|
118
|
|
- */
|
119
|
|
- ADD_ICE_CANDIDATE_FAILED: "xmpp.add_ice_candidate_failed",
|
120
|
|
- /**
|
121
|
|
- * Indicates that the local sendrecv streams in local SDP are changed.
|
122
|
|
- */
|
123
|
|
- SENDRECV_STREAMS_CHANGED: "xmpp.sendrecv_streams_changed",
|
124
|
|
- /**
|
125
|
|
- * Indicates that max users limit have been reached.
|
126
|
|
- */
|
127
|
|
- ROOM_MAX_USERS_ERROR: "xmpp.room_max_users_error"
|
|
121
|
+ // Designates an event indicating that we should join the conference with
|
|
122
|
+ // audio and/or video muted.
|
|
123
|
+ START_MUTED_FROM_FOCUS: "xmpp.start_muted_from_focus",
|
|
124
|
+ // Designates an event indicating that the subject of the XMPP MUC has
|
|
125
|
+ // changed.
|
|
126
|
+ SUBJECT_CHANGED: "xmpp.subject_changed"
|
128
|
127
|
};
|
129
|
128
|
module.exports = XMPPEvents;
|