Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

XMPPEvents.js 4.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. JINGLE_FATAL_ERROR: 'xmpp.jingle_fatal_error',
  85. PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
  86. FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
  87. // xmpp is connected and obtained user media
  88. READY_TO_JOIN: 'xmpp.ready_to_join'
  89. };
  90. module.exports = XMPPEvents;