Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

XMPPEvents.js 4.7KB

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. USER_ID_CHANGED: "xmpp.user_id_changed",
  19. // Designates an event indicating that we have joined the XMPP MUC.
  20. MUC_JOINED: "xmpp.muc_joined",
  21. // Designates an event indicating that a participant joined the XMPP MUC.
  22. MUC_MEMBER_JOINED: "xmpp.muc_member_joined",
  23. // Designates an event indicating that a participant left the XMPP MUC.
  24. MUC_MEMBER_LEFT: "xmpp.muc_member_left",
  25. // Designates an event indicating that the MUC role of a participant has
  26. // changed.
  27. MUC_ROLE_CHANGED: "xmpp.muc_role_changed",
  28. // Designates an event indicating that the XMPP MUC was destroyed.
  29. MUC_DESTROYED: "xmpp.muc_destroyed",
  30. // Designates an event indicating that the display name of a participant
  31. // has changed.
  32. DISPLAY_NAME_CHANGED: "xmpp.display_name_changed",
  33. // Designates an event indicating that we received statistics from a
  34. // participant in the MUC.
  35. REMOTE_STATS: "xmpp.remote_stats",
  36. // Designates an event indicating that our role in the XMPP MUC has changed.
  37. LOCAL_ROLE_CHANGED: "xmpp.localrole_changed",
  38. // Designates an event indicating that the subject of the XMPP MUC has
  39. // changed.
  40. SUBJECT_CHANGED: "xmpp.subject_changed",
  41. // Designates an event indicating that an XMPP message in the MUC was
  42. // received.
  43. MESSAGE_RECEIVED: "xmpp.message_received",
  44. // Designates an event indicating that we sent an XMPP message to the MUC.
  45. SENDING_CHAT_MESSAGE: "xmpp.sending_chat_message",
  46. // Designates an event indicating that the video type (e.g. 'camera' or
  47. // 'screen') for a participant has changed.
  48. PARTICIPANT_VIDEO_TYPE_CHANGED: "xmpp.video_type",
  49. // Designates an event indicating that a participant in the XMPP MUC has
  50. // advertised that they have audio muted (or unmuted).
  51. PARTICIPANT_AUDIO_MUTED: "xmpp.audio_muted",
  52. // Designates an event indicating that a participant in the XMPP MUC has
  53. // advertised that they have video muted (or unmuted).
  54. PARTICIPANT_VIDEO_MUTED: "xmpp.video_muted",
  55. // Designates an event indicating that the focus has asked us to mute our
  56. // audio.
  57. AUDIO_MUTED_BY_FOCUS: "xmpp.audio_muted_by_focus",
  58. // Designates an event indicating that a moderator in the room changed the
  59. // "start muted" settings for the conference.
  60. START_MUTED_SETTING_CHANGED: "xmpp.start_muted_setting_changed",
  61. // Designates an event indicating that we should join the conference with
  62. // audio and/or video muted.
  63. START_MUTED_FROM_FOCUS: "xmpp.start_muted_from_focus",
  64. PEERCONNECTION_READY: "xmpp.peerconnection_ready",
  65. CONFERENCE_SETUP_FAILED: "xmpp.conference_setup_failed",
  66. PASSWORD_REQUIRED: "xmpp.password_required",
  67. AUTHENTICATION_REQUIRED: "xmpp.authentication_required",
  68. CHAT_ERROR_RECEIVED: "xmpp.chat_error_received",
  69. ETHERPAD: "xmpp.etherpad",
  70. DEVICE_AVAILABLE: "xmpp.device_available",
  71. BRIDGE_DOWN: "xmpp.bridge_down",
  72. PRESENCE_STATUS: "xmpp.presence_status",
  73. RESERVATION_ERROR: "xmpp.room_reservation_error",
  74. DISPOSE_CONFERENCE: "xmpp.dispose_conference",
  75. GRACEFUL_SHUTDOWN: "xmpp.graceful_shutdown",
  76. // TODO: only used in a hack, should probably be removed.
  77. SET_LOCAL_DESCRIPTION_ERROR: 'xmpp.set_local_description_error',
  78. // TODO: only used in a hack, should probably be removed.
  79. SET_REMOTE_DESCRIPTION_ERROR: 'xmpp.set_remote_description_error',
  80. // TODO: only used in a hack, should probably be removed.
  81. CREATE_ANSWER_ERROR: 'xmpp.create_answer_error',
  82. JINGLE_FATAL_ERROR: 'xmpp.jingle_fatal_error',
  83. PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
  84. FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
  85. ROOM_JOIN_ERROR: 'xmpp.room_join_error',
  86. ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
  87. // xmpp is connected and obtained user media
  88. READY_TO_JOIN: 'xmpp.ready_to_join'
  89. };
  90. module.exports = XMPPEvents;