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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 a moderator in the room changed the
  63. // "start muted" settings for the conference.
  64. START_MUTED_SETTING_CHANGED: "xmpp.start_muted_setting_changed",
  65. // Designates an event indicating that we should join the conference with
  66. // audio and/or video muted.
  67. START_MUTED_FROM_FOCUS: "xmpp.start_muted_from_focus",
  68. // Designates an event indicating that a remote participant's available
  69. // devices (whether he supports a audio and/or video) changed.
  70. // Note: currently this event fires every time we receive presence from
  71. // someone (regardless of whether or not the devices changed).
  72. DEVICE_AVAILABLE: "xmpp.device_available",
  73. PEERCONNECTION_READY: "xmpp.peerconnection_ready",
  74. CONFERENCE_SETUP_FAILED: "xmpp.conference_setup_failed",
  75. PASSWORD_REQUIRED: "xmpp.password_required",
  76. AUTHENTICATION_REQUIRED: "xmpp.authentication_required",
  77. CHAT_ERROR_RECEIVED: "xmpp.chat_error_received",
  78. ETHERPAD: "xmpp.etherpad",
  79. BRIDGE_DOWN: "xmpp.bridge_down",
  80. PRESENCE_STATUS: "xmpp.presence_status",
  81. RESERVATION_ERROR: "xmpp.room_reservation_error",
  82. DISPOSE_CONFERENCE: "xmpp.dispose_conference",
  83. GRACEFUL_SHUTDOWN: "xmpp.graceful_shutdown",
  84. // TODO: only used in a hack, should probably be removed.
  85. SET_LOCAL_DESCRIPTION_ERROR: 'xmpp.set_local_description_error',
  86. // TODO: only used in a hack, should probably be removed.
  87. SET_REMOTE_DESCRIPTION_ERROR: 'xmpp.set_remote_description_error',
  88. // TODO: only used in a hack, should probably be removed.
  89. CREATE_ANSWER_ERROR: 'xmpp.create_answer_error',
  90. JINGLE_FATAL_ERROR: 'xmpp.jingle_fatal_error',
  91. PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
  92. FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
  93. ROOM_JOIN_ERROR: 'xmpp.room_join_error',
  94. ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
  95. // xmpp is connected and obtained user media
  96. READY_TO_JOIN: 'xmpp.ready_to_join',
  97. FOCUS_LEFT: "xmpp.focus_left",
  98. REMOTE_STREAM_RECEIVED: "xmpp.remote_stream_received",
  99. /**
  100. * Indicates that recording state changed.
  101. */
  102. RECORDING_STATE_CHANGED: "xmpp.recordingStateChanged"
  103. };
  104. module.exports = XMPPEvents;