You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

XMPPEvents.js 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. var XMPPEvents = {
  2. // Designates an event indicating that the connection to the XMPP server
  3. // failed.
  4. CONNECTION_FAILED: "xmpp.connection.failed",
  5. // Designates an event indicating that the media (ICE) connection was
  6. // interrupted. This should go to the RTC module.
  7. CONNECTION_INTERRUPTED: "xmpp.connection.interrupted",
  8. // Designates an event indicating that the media (ICE) connection was
  9. // restored. This should go to the RTC module.
  10. 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",
  14. // Designates an event indicating that we were kicked from the XMPP MUC.
  15. KICKED: "xmpp.kicked",
  16. // Designates an event indicating that the userID for a specific JID has
  17. // changed.
  18. // Note: currently this event fires every time we receive presence from
  19. // someone (regardless of whether or not the "userID" changed).
  20. USER_ID_CHANGED: "xmpp.user_id_changed",
  21. // Designates an event indicating that we have joined the XMPP MUC.
  22. MUC_JOINED: "xmpp.muc_joined",
  23. // Designates an event indicating that a participant joined the XMPP MUC.
  24. MUC_MEMBER_JOINED: "xmpp.muc_member_joined",
  25. // Designates an event indicating that a participant left the XMPP MUC.
  26. MUC_MEMBER_LEFT: "xmpp.muc_member_left",
  27. // Designates an event indicating that the MUC role of a participant has
  28. // changed.
  29. MUC_ROLE_CHANGED: "xmpp.muc_role_changed",
  30. // Designates an event indicating that the XMPP MUC was destroyed.
  31. MUC_DESTROYED: "xmpp.muc_destroyed",
  32. // Designates an event indicating that the display name of a participant
  33. // has changed.
  34. DISPLAY_NAME_CHANGED: "xmpp.display_name_changed",
  35. // Designates an event indicating that we received statistics from a
  36. // participant in the MUC.
  37. REMOTE_STATS: "xmpp.remote_stats",
  38. // Designates an event indicating that our role in the XMPP MUC has changed.
  39. LOCAL_ROLE_CHANGED: "xmpp.localrole_changed",
  40. // Designates an event indicating that the subject of the XMPP MUC has
  41. // changed.
  42. SUBJECT_CHANGED: "xmpp.subject_changed",
  43. // Designates an event indicating that an XMPP message in the MUC was
  44. // received.
  45. MESSAGE_RECEIVED: "xmpp.message_received",
  46. // Designates an event indicating that we sent an XMPP message to the MUC.
  47. SENDING_CHAT_MESSAGE: "xmpp.sending_chat_message",
  48. // Designates an event indicating that the video type (e.g. 'camera' or
  49. // 'screen') for a participant has changed.
  50. // Note: currently this event fires every time we receive presence from
  51. // someone (regardless of whether or not the "video type" changed).
  52. PARTICIPANT_VIDEO_TYPE_CHANGED: "xmpp.video_type",
  53. // Designates an event indicating that a participant in the XMPP MUC has
  54. // advertised that they have audio muted (or unmuted).
  55. PARTICIPANT_AUDIO_MUTED: "xmpp.audio_muted",
  56. // Designates an event indicating that a participant in the XMPP MUC has
  57. // advertised that they have video muted (or unmuted).
  58. PARTICIPANT_VIDEO_MUTED: "xmpp.video_muted",
  59. // Designates an event indicating that the focus has asked us to mute our
  60. // audio.
  61. AUDIO_MUTED_BY_FOCUS: "xmpp.audio_muted_by_focus",
  62. // Designates an event indicating that we should join the conference with
  63. // audio and/or video muted.
  64. START_MUTED_FROM_FOCUS: "xmpp.start_muted_from_focus",
  65. // Designates an event indicating that a remote participant's available
  66. // devices (whether he supports a audio and/or video) changed.
  67. // Note: currently this event fires every time we receive presence from
  68. // someone (regardless of whether or not the devices changed).
  69. DEVICE_AVAILABLE: "xmpp.device_available",
  70. PEERCONNECTION_READY: "xmpp.peerconnection_ready",
  71. CONFERENCE_SETUP_FAILED: "xmpp.conference_setup_failed",
  72. PASSWORD_REQUIRED: "xmpp.password_required",
  73. AUTHENTICATION_REQUIRED: "xmpp.authentication_required",
  74. CHAT_ERROR_RECEIVED: "xmpp.chat_error_received",
  75. ETHERPAD: "xmpp.etherpad",
  76. BRIDGE_DOWN: "xmpp.bridge_down",
  77. PRESENCE_STATUS: "xmpp.presence_status",
  78. RESERVATION_ERROR: "xmpp.room_reservation_error",
  79. DISPOSE_CONFERENCE: "xmpp.dispose_conference",
  80. GRACEFUL_SHUTDOWN: "xmpp.graceful_shutdown",
  81. // TODO: only used in a hack, should probably be removed.
  82. SET_LOCAL_DESCRIPTION_ERROR: 'xmpp.set_local_description_error',
  83. // TODO: only used in a hack, should probably be removed.
  84. SET_REMOTE_DESCRIPTION_ERROR: 'xmpp.set_remote_description_error',
  85. // TODO: only used in a hack, should probably be removed.
  86. CREATE_ANSWER_ERROR: 'xmpp.create_answer_error',
  87. JINGLE_FATAL_ERROR: 'xmpp.jingle_fatal_error',
  88. PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
  89. FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
  90. ROOM_JOIN_ERROR: 'xmpp.room_join_error',
  91. ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
  92. // xmpp is connected and obtained user media
  93. READY_TO_JOIN: 'xmpp.ready_to_join',
  94. FOCUS_LEFT: "xmpp.focus_left",
  95. REMOTE_STREAM_RECEIVED: "xmpp.remote_stream_received",
  96. /**
  97. * Indicates that recording state changed.
  98. */
  99. RECORDING_STATE_CHANGED: "xmpp.recordingStateChanged",
  100. /**
  101. * Indicates that phone number changed.
  102. */
  103. PHONE_NUMBER_CHANGED: "conference.phoneNumberChanged"
  104. };
  105. module.exports = XMPPEvents;