Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

XMPPEvents.js 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. var XMPPEvents = {
  2. /**
  3. * Indicates error while adding ice candidate.
  4. */
  5. ADD_ICE_CANDIDATE_FAILED: "xmpp.add_ice_candidate_failed",
  6. // Designates an event indicating that the focus has asked us to mute our
  7. // audio.
  8. AUDIO_MUTED_BY_FOCUS: "xmpp.audio_muted_by_focus",
  9. AUTHENTICATION_REQUIRED: "xmpp.authentication_required",
  10. BRIDGE_DOWN: "xmpp.bridge_down",
  11. // Designates an event indicating that an offer (e.g. Jingle
  12. // session-initiate) was received.
  13. CALL_INCOMING: "xmpp.callincoming.jingle",
  14. CHAT_ERROR_RECEIVED: "xmpp.chat_error_received",
  15. CONFERENCE_SETUP_FAILED: "xmpp.conference_setup_failed",
  16. // Designates an event indicating that the connection to the XMPP server
  17. // failed.
  18. CONNECTION_FAILED: "xmpp.connection.failed",
  19. // Designates an event indicating that the media (ICE) connection was
  20. // interrupted. This should go to the RTC module.
  21. CONNECTION_INTERRUPTED: "xmpp.connection.interrupted",
  22. // Designates an event indicating that the media (ICE) connection was
  23. // restored. This should go to the RTC module.
  24. CONNECTION_RESTORED: "xmpp.connection.restored",
  25. // Designates an event indicating that the media (ICE) connection failed.
  26. // This should go to the RTC module.
  27. CONNECTION_ICE_FAILED: "xmpp.connection.ice.failed",
  28. // TODO: only used in a hack, should probably be removed.
  29. CREATE_ANSWER_ERROR: 'xmpp.create_answer_error',
  30. /**
  31. * Indicates error while create answer call.
  32. */
  33. CREATE_ANSWER_FAILED: "xmpp.create_answer_failed",
  34. /**
  35. * Indicates error while create offer call.
  36. */
  37. CREATE_OFFER_FAILED: "xmpp.create_offer_failed",
  38. // Designates an event indicating that the display name of a participant
  39. // has changed.
  40. DISPLAY_NAME_CHANGED: "xmpp.display_name_changed",
  41. DISPOSE_CONFERENCE: "xmpp.dispose_conference",
  42. ETHERPAD: "xmpp.etherpad",
  43. FOCUS_DISCONNECTED: 'xmpp.focus_disconnected',
  44. FOCUS_LEFT: "xmpp.focus_left",
  45. GRACEFUL_SHUTDOWN: "xmpp.graceful_shutdown",
  46. /* Event fired when XMPP error is returned to any request, it is meant to be
  47. * used to report 'signaling' errors to CallStats
  48. *
  49. * {
  50. * code: {XMPP error code}
  51. * reason: {XMPP error condition}
  52. * source = request.tree()
  53. * session = {JingleSession instance}
  54. * }
  55. */
  56. JINGLE_ERROR: 'xmpp.jingle_error',
  57. // Event fired when we have failed to set initial offer
  58. JINGLE_FATAL_ERROR: 'xmpp.jingle_fatal_error',
  59. // Designates an event indicating that we were kicked from the XMPP MUC.
  60. KICKED: "xmpp.kicked",
  61. // Designates an event indicating that our role in the XMPP MUC has changed.
  62. LOCAL_ROLE_CHANGED: "xmpp.localrole_changed",
  63. // Designates an event indicating that an XMPP message in the MUC was
  64. // received.
  65. MESSAGE_RECEIVED: "xmpp.message_received",
  66. // Designates an event indicating that the XMPP MUC was destroyed.
  67. MUC_DESTROYED: "xmpp.muc_destroyed",
  68. // Designates an event indicating that we have joined the XMPP MUC.
  69. MUC_JOINED: "xmpp.muc_joined",
  70. // Designates an event indicating that a participant joined the XMPP MUC.
  71. MUC_MEMBER_JOINED: "xmpp.muc_member_joined",
  72. // Designates an event indicating that a participant left the XMPP MUC.
  73. MUC_MEMBER_LEFT: "xmpp.muc_member_left",
  74. // Designates an event indicating that the MUC role of a participant has
  75. // changed.
  76. MUC_ROLE_CHANGED: "xmpp.muc_role_changed",
  77. // Designates an event indicating that a participant in the XMPP MUC has
  78. // advertised that they have audio muted (or unmuted).
  79. PARTICIPANT_AUDIO_MUTED: "xmpp.audio_muted",
  80. // Designates an event indicating that a participant in the XMPP MUC has
  81. // advertised that they have video muted (or unmuted).
  82. PARTICIPANT_VIDEO_MUTED: "xmpp.video_muted",
  83. // Designates an event indicating that the video type (e.g. 'camera' or
  84. // 'screen') for a participant has changed.
  85. // Note: currently this event fires every time we receive presence from
  86. // someone (regardless of whether or not the "video type" changed).
  87. PARTICIPANT_VIDEO_TYPE_CHANGED: "xmpp.video_type",
  88. PASSWORD_REQUIRED: "xmpp.password_required",
  89. PEERCONNECTION_READY: "xmpp.peerconnection_ready",
  90. /**
  91. * Indicates that phone number changed.
  92. */
  93. PHONE_NUMBER_CHANGED: "conference.phoneNumberChanged",
  94. PRESENCE_STATUS: "xmpp.presence_status",
  95. PROMPT_FOR_LOGIN: 'xmpp.prompt_for_login',
  96. // xmpp is connected and obtained user media
  97. READY_TO_JOIN: 'xmpp.ready_to_join',
  98. /**
  99. * Indicates that recording state changed.
  100. */
  101. RECORDER_STATE_CHANGED: "xmpp.recorderStateChanged",
  102. // Designates an event indicating that we received statistics from a
  103. // participant in the MUC.
  104. REMOTE_STATS: "xmpp.remote_stats",
  105. /**
  106. * Event fired when we remote track is added to the conference.
  107. * The following structure is passed as an argument:
  108. * {
  109. * stream: the WebRTC MediaStream instance
  110. * track: the WebRTC MediaStreamTrack
  111. * mediaType: the MediaType instance
  112. * owner: the MUC JID of the stream owner
  113. * muted: a boolean indicating initial 'muted' status of the track or
  114. * 'null' if unknown
  115. **/
  116. REMOTE_TRACK_ADDED: "xmpp.remote_track_added",
  117. /**
  118. * Indicates that the remote track has been removed from the conference.
  119. * 1st event argument is the ID of the parent WebRTC stream to which
  120. * the track being removed belongs to.
  121. * 2nd event argument is the ID of the removed track.
  122. */
  123. REMOTE_TRACK_REMOVED: "xmpp.remote_track_removed",
  124. RESERVATION_ERROR: "xmpp.room_reservation_error",
  125. ROOM_CONNECT_ERROR: 'xmpp.room_connect_error',
  126. ROOM_JOIN_ERROR: 'xmpp.room_join_error',
  127. /**
  128. * Indicates that max users limit has been reached.
  129. */
  130. ROOM_MAX_USERS_ERROR: "xmpp.room_max_users_error",
  131. // Designates an event indicating that we sent an XMPP message to the MUC.
  132. SENDING_CHAT_MESSAGE: "xmpp.sending_chat_message",
  133. /**
  134. * Indicates that the local sendrecv streams in local SDP are changed.
  135. */
  136. SENDRECV_STREAMS_CHANGED: "xmpp.sendrecv_streams_changed",
  137. // TODO: only used in a hack, should probably be removed.
  138. SET_LOCAL_DESCRIPTION_ERROR: 'xmpp.set_local_description_error',
  139. /**
  140. * Indicates error while set local description.
  141. */
  142. SET_LOCAL_DESCRIPTION_FAILED: "xmpp.set_local_description_failed",
  143. // TODO: only used in a hack, should probably be removed.
  144. SET_REMOTE_DESCRIPTION_ERROR: 'xmpp.set_remote_description_error',
  145. /**
  146. * Indicates error while set remote description.
  147. */
  148. SET_REMOTE_DESCRIPTION_FAILED: "xmpp.set_remote_description_failed",
  149. // Designates an event indicating that we should join the conference with
  150. // audio and/or video muted.
  151. START_MUTED_FROM_FOCUS: "xmpp.start_muted_from_focus",
  152. // Designates an event indicating that the subject of the XMPP MUC has
  153. // changed.
  154. SUBJECT_CHANGED: "xmpp.subject_changed"
  155. };
  156. module.exports = XMPPEvents;