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

JitsiConferenceEvents.js 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. /**
  2. * The events for the conference.
  3. */
  4. /**
  5. * Indicates that authentication status changed.
  6. */
  7. export const AUTH_STATUS_CHANGED = 'conference.auth_status_changed';
  8. /**
  9. * A participant avatar has changed.
  10. */
  11. export const AVATAR_CHANGED = 'conference.avatarChanged';
  12. /**
  13. * Fired just before the statistics module is disposed and it's the last chance
  14. * to submit some logs to the statistics service (ex. CallStats if enabled),
  15. * before it's disconnected.
  16. */
  17. export const BEFORE_STATISTICS_DISPOSED = 'conference.beforeStatisticsDisposed';
  18. /**
  19. * Indicates that an error occured.
  20. */
  21. export const CONFERENCE_ERROR = 'conference.error';
  22. /**
  23. * Indicates that conference failed.
  24. */
  25. export const CONFERENCE_FAILED = 'conference.failed';
  26. /**
  27. * Indicates that conference has been joined. The event does NOT provide any
  28. * parameters to its listeners.
  29. */
  30. export const CONFERENCE_JOINED = 'conference.joined';
  31. /**
  32. * Indicates that conference has been left.
  33. */
  34. export const CONFERENCE_LEFT = 'conference.left';
  35. /**
  36. * Indicates that the connection to the conference has been established
  37. * XXX This is currently fired whenVthe *ICE* connection enters 'connected'
  38. * state for the first time.
  39. */
  40. export const CONNECTION_ESTABLISHED = 'conference.connectionEstablished';
  41. /**
  42. * Indicates that the connection to the conference has been interrupted for some
  43. * reason.
  44. * XXX This is currently fired when the *ICE* connection is interrupted.
  45. */
  46. export const CONNECTION_INTERRUPTED = 'conference.connectionInterrupted';
  47. /**
  48. * Indicates that the connection to the conference has been restored.
  49. * XXX This is currently fired when the *ICE* connection is restored.
  50. */
  51. export const CONNECTION_RESTORED = 'conference.connectionRestored';
  52. /**
  53. * A connection to the video bridge's data channel has been established.
  54. */
  55. export const DATA_CHANNEL_OPENED = 'conference.dataChannelOpened';
  56. /**
  57. * A user has changed it display name
  58. */
  59. export const DISPLAY_NAME_CHANGED = 'conference.displayNameChanged';
  60. /**
  61. * The dominant speaker was changed.
  62. */
  63. export const DOMINANT_SPEAKER_CHANGED = 'conference.dominantSpeaker';
  64. /**
  65. * Indicates that DTMF support changed.
  66. */
  67. export const DTMF_SUPPORT_CHANGED = 'conference.dtmfSupportChanged';
  68. /**
  69. * Indicates that a message from another participant is received on data
  70. * channel.
  71. */
  72. export const ENDPOINT_MESSAGE_RECEIVED = 'conference.endpoint_message_received';
  73. /**
  74. * NOTE This is lib-jitsi-meet internal event and can be removed at any time !
  75. *
  76. * Event emitted when conference transits, between one to one and multiparty JVB
  77. * conference. If the conference switches to P2P it's neither one to one nor
  78. * a multiparty JVB conference, but P2P (the status argument of this event will
  79. * be <tt>false</tt>).
  80. *
  81. * The first argument is a boolean which carries the previous value and
  82. * the seconds argument is a boolean with the new status. The event is emitted
  83. * only if the previous and the new values are different.
  84. *
  85. * @type {string}
  86. */
  87. export const JVB121_STATUS = 'conference.jvb121Status';
  88. /**
  89. * You are kicked from the conference.
  90. * @param {JitsiParticipant} the participant that initiated the kick.
  91. */
  92. export const KICKED = 'conference.kicked';
  93. /**
  94. * Participant was kicked from the conference.
  95. * @param {JitsiParticipant} the participant that initiated the kick.
  96. * @param {JitsiParticipant} the participant that was kicked.
  97. */
  98. export const PARTICIPANT_KICKED = 'conference.participant_kicked';
  99. /**
  100. * The Last N set is changed.
  101. *
  102. * @param {Array<string>|null} leavingEndpointIds the ids of all the endpoints
  103. * which are leaving Last N
  104. * @param {Array<string>|null} enteringEndpointIds the ids of all the endpoints
  105. * which are entering Last N
  106. */
  107. export const LAST_N_ENDPOINTS_CHANGED = 'conference.lastNEndpointsChanged';
  108. /**
  109. * Indicates that the room has been locked or unlocked.
  110. */
  111. export const LOCK_STATE_CHANGED = 'conference.lock_state_changed';
  112. /**
  113. * Indicates that the region of the media server (jitsi-videobridge) that we
  114. * are connected to changed (or was initially set).
  115. * @type {string} the region.
  116. */
  117. export const SERVER_REGION_CHANGED = 'conference.server_region_changed';
  118. /**
  119. * New text message was received.
  120. */
  121. export const MESSAGE_RECEIVED = 'conference.messageReceived';
  122. /**
  123. * New private text message was received.
  124. */
  125. export const PRIVATE_MESSAGE_RECEIVED = 'conference.privateMessageReceived';
  126. /**
  127. * Event fired when JVB sends notification about interrupted/restored user's
  128. * ICE connection status or we detect local problem with the video track.
  129. * First argument is the ID of the participant and
  130. * the seconds is a string indicating if the connection is currently
  131. * - active - the connection is active
  132. * - inactive - the connection is inactive, was intentionally interrupted by
  133. * the bridge
  134. * - interrupted - a network problem occurred
  135. * - restoring - the connection was inactive and is restoring now
  136. *
  137. * The current status value can be obtained by calling
  138. * JitsiParticipant.getConnectionStatus().
  139. */
  140. export const PARTICIPANT_CONN_STATUS_CHANGED
  141. = 'conference.participant_conn_status_changed';
  142. /**
  143. * Indicates that the features of the participant has been changed.
  144. */
  145. export const PARTCIPANT_FEATURES_CHANGED
  146. = 'conference.partcipant_features_changed';
  147. /**
  148. * Indicates that a the value of a specific property of a specific participant
  149. * has changed.
  150. */
  151. export const PARTICIPANT_PROPERTY_CHANGED
  152. = 'conference.participant_property_changed';
  153. /**
  154. * Indicates that the conference has switched between JVB and P2P connections.
  155. * The first argument of this event is a <tt>boolean</tt> which when set to
  156. * <tt>true</tt> means that the conference is running on the P2P connection.
  157. */
  158. export const P2P_STATUS = 'conference.p2pStatus';
  159. /**
  160. * Indicates that phone number changed.
  161. */
  162. export const PHONE_NUMBER_CHANGED = 'conference.phoneNumberChanged';
  163. /**
  164. * The conference properties changed.
  165. * @type {string}
  166. */
  167. export const PROPERTIES_CHANGED = 'conference.propertiesChanged';
  168. /**
  169. * Indicates that recording state changed.
  170. */
  171. export const RECORDER_STATE_CHANGED = 'conference.recorderStateChanged';
  172. /**
  173. * Indicates that video SIP GW state changed.
  174. * @param {VideoSIPGWConstants} status.
  175. */
  176. export const VIDEO_SIP_GW_AVAILABILITY_CHANGED
  177. = 'conference.videoSIPGWAvailabilityChanged';
  178. /**
  179. * Indicates that video SIP GW Session state changed.
  180. * @param {options} event - {
  181. * {string} address,
  182. * {VideoSIPGWConstants} oldState,
  183. * {VideoSIPGWConstants} newState,
  184. * {string} displayName}
  185. * }.
  186. */
  187. export const VIDEO_SIP_GW_SESSION_STATE_CHANGED
  188. = 'conference.videoSIPGWSessionStateChanged';
  189. /**
  190. * Indicates that start muted settings changed.
  191. */
  192. export const START_MUTED_POLICY_CHANGED
  193. = 'conference.start_muted_policy_changed';
  194. /**
  195. * Indicates that the local user has started muted.
  196. */
  197. export const STARTED_MUTED = 'conference.started_muted';
  198. /**
  199. * Indicates that subject of the conference has changed.
  200. */
  201. export const SUBJECT_CHANGED = 'conference.subjectChanged';
  202. /**
  203. * Indicates that DTMF support changed.
  204. */
  205. export const SUSPEND_DETECTED = 'conference.suspendDetected';
  206. /**
  207. * Event indicates that local user is talking while he muted himself
  208. */
  209. export const TALK_WHILE_MUTED = 'conference.talk_while_muted';
  210. /**
  211. * A new media track was added to the conference. The event provides the
  212. * following parameters to its listeners:
  213. *
  214. * @param {JitsiTrack} track the added JitsiTrack
  215. */
  216. export const TRACK_ADDED = 'conference.trackAdded';
  217. /**
  218. * Audio levels of a media track ( attached to the conference) was changed.
  219. */
  220. export const TRACK_AUDIO_LEVEL_CHANGED = 'conference.audioLevelsChanged';
  221. /**
  222. * A media track ( attached to the conference) mute status was changed.
  223. * @param {JitsiParticipant|null} the participant that initiated the mute
  224. * if it is a remote mute.
  225. */
  226. export const TRACK_MUTE_CHANGED = 'conference.trackMuteChanged';
  227. /**
  228. * The media track was removed from the conference. The event provides the
  229. * following parameters to its listeners:
  230. *
  231. * @param {JitsiTrack} track the removed JitsiTrack
  232. */
  233. export const TRACK_REMOVED = 'conference.trackRemoved';
  234. /**
  235. * Notifies for transcription status changes. The event provides the
  236. * following parameters to its listeners:
  237. *
  238. * @param {String} status - The new status.
  239. */
  240. export const TRANSCRIPTION_STATUS_CHANGED
  241. = 'conference.transcriptionStatusChanged';
  242. /**
  243. * A new user joined the conference.
  244. */
  245. export const USER_JOINED = 'conference.userJoined';
  246. /**
  247. * A user has left the conference.
  248. */
  249. export const USER_LEFT = 'conference.userLeft';
  250. /**
  251. * User role changed.
  252. */
  253. export const USER_ROLE_CHANGED = 'conference.roleChanged';
  254. /**
  255. * User status changed.
  256. */
  257. export const USER_STATUS_CHANGED = 'conference.statusChanged';
  258. /**
  259. * Event indicates that the bot participant type changed.
  260. */
  261. export const BOT_TYPE_CHANGED = 'conference.bot_type_changed';