2015-01-19 09:20:00 +00:00
|
|
|
var XMPPEvents = {
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that the connection to the XMPP server
|
|
|
|
// failed.
|
2015-04-22 14:14:16 +00:00
|
|
|
CONNECTION_FAILED: "xmpp.connection.failed",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that the media (ICE) connection was
|
|
|
|
// interrupted. This should go to the RTC module.
|
2015-08-03 15:58:22 +00:00
|
|
|
CONNECTION_INTERRUPTED: "xmpp.connection.interrupted",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that the media (ICE) connection was
|
|
|
|
// restored. This should go to the RTC module.
|
2015-08-03 15:58:22 +00:00
|
|
|
CONNECTION_RESTORED: "xmpp.connection.restored",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that an offer (e.g. Jingle
|
|
|
|
// session-initiate) was received.
|
2015-01-19 09:20:00 +00:00
|
|
|
CALL_INCOMING: "xmpp.callincoming.jingle",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that we were kicked from the XMPP MUC.
|
2015-01-19 09:20:00 +00:00
|
|
|
KICKED: "xmpp.kicked",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that the userID for a specific JID has
|
|
|
|
// changed.
|
2015-01-19 09:20:00 +00:00
|
|
|
USER_ID_CHANGED: "xmpp.user_id_changed",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that we have joined the XMPP MUC.
|
2015-01-19 09:20:00 +00:00
|
|
|
MUC_JOINED: "xmpp.muc_joined",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that a participant joined the XMPP MUC.
|
2015-04-08 10:30:10 +00:00
|
|
|
MUC_MEMBER_JOINED: "xmpp.muc_member_joined",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that a participant left the XMPP MUC.
|
2015-04-08 10:30:10 +00:00
|
|
|
MUC_MEMBER_LEFT: "xmpp.muc_member_left",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that the MUC role of a participant has
|
|
|
|
// changed.
|
2015-01-23 15:36:17 +00:00
|
|
|
MUC_ROLE_CHANGED: "xmpp.muc_role_changed",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that the XMPP MUC was destroyed.
|
2015-02-23 15:10:12 +00:00
|
|
|
MUC_DESTROYED: "xmpp.muc_destroyed",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that the display name of a participant
|
|
|
|
// has changed.
|
2015-01-19 09:20:00 +00:00
|
|
|
DISPLAY_NAME_CHANGED: "xmpp.display_name_changed",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that we received statistics from a
|
|
|
|
// participant in the MUC.
|
2015-01-23 15:36:17 +00:00
|
|
|
REMOTE_STATS: "xmpp.remote_stats",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that our role in the XMPP MUC has changed.
|
2015-04-08 10:30:10 +00:00
|
|
|
LOCAL_ROLE_CHANGED: "xmpp.localrole_changed",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that the subject of the XMPP MUC has
|
|
|
|
// changed.
|
2015-01-23 15:36:17 +00:00
|
|
|
SUBJECT_CHANGED: "xmpp.subject_changed",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that an XMPP message in the MUC was
|
|
|
|
// received.
|
2015-01-23 15:36:17 +00:00
|
|
|
MESSAGE_RECEIVED: "xmpp.message_received",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that we sent an XMPP message to the MUC.
|
2015-01-24 14:28:02 +00:00
|
|
|
SENDING_CHAT_MESSAGE: "xmpp.sending_chat_message",
|
2015-08-17 20:35:07 +00:00
|
|
|
// Designates an event indicating that the video type (e.g. 'camera' or
|
|
|
|
// 'screen') for a participant has changed.
|
|
|
|
PARTICIPANT_VIDEO_TYPE_CHANGED: "xmpp.video_type",
|
|
|
|
// Designates an event indicating that a participant in the XMPP MUC has
|
|
|
|
// advertised that they have audio muted (or unmuted).
|
|
|
|
PARTICIPANT_AUDIO_MUTED: "xmpp.audio_muted",
|
|
|
|
// Designates an event indicating that a participant in the XMPP MUC has
|
|
|
|
// advertised that they have video muted (or unmuted).
|
|
|
|
PARTICIPANT_VIDEO_MUTED: "xmpp.video_muted",
|
|
|
|
// Designates an event indicating that the focus has asked us to mute our
|
|
|
|
// audio.
|
|
|
|
AUDIO_MUTED_BY_FOCUS: "xmpp.audio_muted_by_focus",
|
|
|
|
// Designates an event indicating that a moderator in the room changed the
|
|
|
|
// "start muted" settings for the conference.
|
|
|
|
START_MUTED_SETTING_CHANGED: "xmpp.start_muted_setting_changed",
|
|
|
|
// Designates an event indicating that we should join the conference with
|
|
|
|
// audio and/or video muted.
|
|
|
|
START_MUTED_FROM_FOCUS: "xmpp.start_muted_from_focus",
|
|
|
|
|
|
|
|
|
|
|
|
PEERCONNECTION_READY: "xmpp.peerconnection_ready",
|
|
|
|
CONFERENCE_SETUP_FAILED: "xmpp.conference_setup_failed",
|
2015-01-23 15:36:17 +00:00
|
|
|
PASSWORD_REQUIRED: "xmpp.password_required",
|
2015-01-27 09:56:22 +00:00
|
|
|
AUTHENTICATION_REQUIRED: "xmpp.authentication_required",
|
2015-01-23 15:36:17 +00:00
|
|
|
CHAT_ERROR_RECEIVED: "xmpp.chat_error_received",
|
2015-03-27 09:36:39 +00:00
|
|
|
ETHERPAD: "xmpp.etherpad",
|
2015-05-19 15:03:01 +00:00
|
|
|
DEVICE_AVAILABLE: "xmpp.device_available",
|
2015-08-17 20:35:07 +00:00
|
|
|
BRIDGE_DOWN: "xmpp.bridge_down",
|
|
|
|
PRESENCE_STATUS: "xmpp.presence_status",
|
|
|
|
RESERVATION_ERROR: "xmpp.room_reservation_error",
|
|
|
|
DISPOSE_CONFERENCE: "xmpp.dispose_conference",
|
|
|
|
GRACEFUL_SHUTDOWN: "xmpp.graceful_shutdown",
|
|
|
|
// TODO: only used in a hack, should probably be removed.
|
2015-06-18 17:49:43 +00:00
|
|
|
SET_LOCAL_DESCRIPTION_ERROR: 'xmpp.set_local_description_error',
|
2015-08-17 20:35:07 +00:00
|
|
|
// TODO: only used in a hack, should probably be removed.
|
2015-06-18 17:49:43 +00:00
|
|
|
SET_REMOTE_DESCRIPTION_ERROR: 'xmpp.set_remote_description_error',
|
2015-08-17 20:35:07 +00:00
|
|
|
// TODO: only used in a hack, should probably be removed.
|
2015-06-18 17:49:43 +00:00
|
|
|
CREATE_ANSWER_ERROR: 'xmpp.create_answer_error',
|
|
|
|
JINGLE_FATAL_ERROR: 'xmpp.jingle_fatal_error',
|
|
|
|
PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
|
|
|
|
FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
|
|
|
|
ROOM_JOIN_ERROR: 'xmpp.room_join_error',
|
|
|
|
ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
|
|
|
|
// xmpp is connected and obtained user media
|
|
|
|
READY_TO_JOIN: 'xmpp.ready_to_join'
|
2015-01-19 09:20:00 +00:00
|
|
|
};
|
2015-01-28 14:35:22 +00:00
|
|
|
module.exports = XMPPEvents;
|