您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

XMPPEvents.js 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 we have joined the XMPP MUC.
  17. MUC_JOINED: "xmpp.muc_joined",
  18. // Designates an event indicating that a participant joined the XMPP MUC.
  19. MUC_MEMBER_JOINED: "xmpp.muc_member_joined",
  20. // Designates an event indicating that a participant left the XMPP MUC.
  21. MUC_MEMBER_LEFT: "xmpp.muc_member_left",
  22. // Designates an event indicating that the MUC role of a participant has
  23. // changed.
  24. MUC_ROLE_CHANGED: "xmpp.muc_role_changed",
  25. // Designates an event indicating that the XMPP MUC was destroyed.
  26. MUC_DESTROYED: "xmpp.muc_destroyed",
  27. // Designates an event indicating that the display name of a participant
  28. // has changed.
  29. DISPLAY_NAME_CHANGED: "xmpp.display_name_changed",
  30. // Designates an event indicating that we received statistics from a
  31. // participant in the MUC.
  32. REMOTE_STATS: "xmpp.remote_stats",
  33. // Designates an event indicating that our role in the XMPP MUC has changed.
  34. LOCAL_ROLE_CHANGED: "xmpp.localrole_changed",
  35. // Designates an event indicating that the subject of the XMPP MUC has
  36. // changed.
  37. SUBJECT_CHANGED: "xmpp.subject_changed",
  38. // Designates an event indicating that an XMPP message in the MUC was
  39. // received.
  40. MESSAGE_RECEIVED: "xmpp.message_received",
  41. // Designates an event indicating that we sent an XMPP message to the MUC.
  42. SENDING_CHAT_MESSAGE: "xmpp.sending_chat_message",
  43. // Designates an event indicating that the video type (e.g. 'camera' or
  44. // 'screen') for a participant has changed.
  45. // Note: currently this event fires every time we receive presence from
  46. // someone (regardless of whether or not the "video type" changed).
  47. PARTICIPANT_VIDEO_TYPE_CHANGED: "xmpp.video_type",
  48. // Designates an event indicating that a participant in the XMPP MUC has
  49. // advertised that they have audio muted (or unmuted).
  50. PARTICIPANT_AUDIO_MUTED: "xmpp.audio_muted",
  51. // Designates an event indicating that a participant in the XMPP MUC has
  52. // advertised that they have video muted (or unmuted).
  53. PARTICIPANT_VIDEO_MUTED: "xmpp.video_muted",
  54. // Designates an event indicating that the focus has asked us to mute our
  55. // audio.
  56. AUDIO_MUTED_BY_FOCUS: "xmpp.audio_muted_by_focus",
  57. // Designates an event indicating that we should join the conference with
  58. // audio and/or video muted.
  59. START_MUTED_FROM_FOCUS: "xmpp.start_muted_from_focus",
  60. PEERCONNECTION_READY: "xmpp.peerconnection_ready",
  61. CONFERENCE_SETUP_FAILED: "xmpp.conference_setup_failed",
  62. PASSWORD_REQUIRED: "xmpp.password_required",
  63. AUTHENTICATION_REQUIRED: "xmpp.authentication_required",
  64. CHAT_ERROR_RECEIVED: "xmpp.chat_error_received",
  65. ETHERPAD: "xmpp.etherpad",
  66. BRIDGE_DOWN: "xmpp.bridge_down",
  67. PRESENCE_STATUS: "xmpp.presence_status",
  68. RESERVATION_ERROR: "xmpp.room_reservation_error",
  69. DISPOSE_CONFERENCE: "xmpp.dispose_conference",
  70. GRACEFUL_SHUTDOWN: "xmpp.graceful_shutdown",
  71. // TODO: only used in a hack, should probably be removed.
  72. SET_LOCAL_DESCRIPTION_ERROR: 'xmpp.set_local_description_error',
  73. // TODO: only used in a hack, should probably be removed.
  74. SET_REMOTE_DESCRIPTION_ERROR: 'xmpp.set_remote_description_error',
  75. // TODO: only used in a hack, should probably be removed.
  76. CREATE_ANSWER_ERROR: 'xmpp.create_answer_error',
  77. JINGLE_FATAL_ERROR: 'xmpp.jingle_fatal_error',
  78. PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
  79. FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
  80. ROOM_JOIN_ERROR: 'xmpp.room_join_error',
  81. ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
  82. // xmpp is connected and obtained user media
  83. READY_TO_JOIN: 'xmpp.ready_to_join',
  84. FOCUS_LEFT: "xmpp.focus_left",
  85. REMOTE_STREAM_RECEIVED: "xmpp.remote_stream_received",
  86. /**
  87. * Indicates that recording state changed.
  88. */
  89. RECORDING_STATE_CHANGED: "xmpp.recordingStateChanged",
  90. /**
  91. * Indicates that phone number changed.
  92. */
  93. PHONE_NUMBER_CHANGED: "conference.phoneNumberChanged",
  94. /**
  95. * Indicates error while create offer call.
  96. */
  97. CREATE_OFFER_FAILED: "xmpp.create_offer_failed",
  98. /**
  99. * Indicates error while create answer call.
  100. */
  101. CREATE_ANSWER_FAILED: "xmpp.create_answer_failed",
  102. /**
  103. * Indicates error while set local description.
  104. */
  105. SET_LOCAL_DESCRIPTION_FAILED: "xmpp.set_local_description_failed",
  106. /**
  107. * Indicates error while set remote description.
  108. */
  109. SET_REMOTE_DESCRIPTION_FAILED: "xmpp.set_remote_description_failed",
  110. /**
  111. * Indicates error while adding ice candidate.
  112. */
  113. ADD_ICE_CANDIDATE_FAILED: "xmpp.add_ice_candidate_failed"
  114. };
  115. module.exports = XMPPEvents;