Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

JitsiConferenceEvents.js 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. /**
  2. * The events for the conference.
  3. */
  4. /**
  5. * Event indicates that the current conference audio input switched between audio
  6. * input states,i.e. with or without audio input.
  7. */
  8. export const AUDIO_INPUT_STATE_CHANGE = 'conference.audio_input_state_changed';
  9. /**
  10. * Indicates that authentication status changed.
  11. */
  12. export const AUTH_STATUS_CHANGED = 'conference.auth_status_changed';
  13. /**
  14. * Fired just before the statistics module is disposed and it's the last chance
  15. * to submit some logs to the statistics service (ex. CallStats if enabled),
  16. * before it's disconnected.
  17. */
  18. export const BEFORE_STATISTICS_DISPOSED = 'conference.beforeStatisticsDisposed';
  19. /**
  20. * Indicates that an error occured.
  21. */
  22. export const CONFERENCE_ERROR = 'conference.error';
  23. /**
  24. * Indicates that conference failed.
  25. */
  26. export const CONFERENCE_FAILED = 'conference.failed';
  27. /**
  28. * Indicates that conference is in progress of joining.
  29. */
  30. export const CONFERENCE_JOIN_IN_PROGRESS = 'conference.join_in_progress';
  31. /**
  32. * Indicates that conference has been joined. The event does NOT provide any
  33. * parameters to its listeners.
  34. */
  35. export const CONFERENCE_JOINED = 'conference.joined';
  36. /**
  37. * Indicates that conference has been left.
  38. */
  39. export const CONFERENCE_LEFT = 'conference.left';
  40. /**
  41. * Indicates that the conference unique identifier has been set.
  42. */
  43. export const CONFERENCE_UNIQUE_ID_SET = 'conference.unique_id_set';
  44. /**
  45. * Indicates that the connection to the conference has been established
  46. * XXX This is currently fired whenVthe *ICE* connection enters 'connected'
  47. * state for the first time.
  48. */
  49. export const CONNECTION_ESTABLISHED = 'conference.connectionEstablished';
  50. /**
  51. * Indicates that the connection to the conference has been interrupted for some
  52. * reason.
  53. * XXX This is currently fired when the *ICE* connection is interrupted.
  54. */
  55. export const CONNECTION_INTERRUPTED = 'conference.connectionInterrupted';
  56. /**
  57. * Indicates that the connection to the conference has been restored.
  58. * XXX This is currently fired when the *ICE* connection is restored.
  59. */
  60. export const CONNECTION_RESTORED = 'conference.connectionRestored';
  61. /**
  62. * A connection to the video bridge's data channel has been established.
  63. */
  64. export const DATA_CHANNEL_OPENED = 'conference.dataChannelOpened';
  65. /**
  66. * A user has changed it display name
  67. */
  68. export const DISPLAY_NAME_CHANGED = 'conference.displayNameChanged';
  69. /**
  70. * The dominant speaker was changed.
  71. */
  72. export const DOMINANT_SPEAKER_CHANGED = 'conference.dominantSpeaker';
  73. /**
  74. * UTC conference timestamp when first participant joined.
  75. */
  76. export const CONFERENCE_CREATED_TIMESTAMP = 'conference.createdTimestamp';
  77. /**
  78. * Indicates that DTMF support changed.
  79. */
  80. export const DTMF_SUPPORT_CHANGED = 'conference.dtmfSupportChanged';
  81. /**
  82. * Indicates that a message from another participant is received on data
  83. * channel.
  84. */
  85. export const ENDPOINT_MESSAGE_RECEIVED = 'conference.endpoint_message_received';
  86. /**
  87. * Indicates that a message for the remote endpoint statistics has been received on the bridge channel.
  88. */
  89. export const ENDPOINT_STATS_RECEIVED = 'conference.endpoint_stats_received';
  90. /**
  91. * NOTE This is lib-jitsi-meet internal event and can be removed at any time !
  92. *
  93. * Event emitted when conference transits, between one to one and multiparty JVB
  94. * conference. If the conference switches to P2P it's neither one to one nor
  95. * a multiparty JVB conference, but P2P (the status argument of this event will
  96. * be <tt>false</tt>).
  97. *
  98. * The first argument is a boolean which carries the previous value and
  99. * the seconds argument is a boolean with the new status. The event is emitted
  100. * only if the previous and the new values are different.
  101. *
  102. * @type {string}
  103. */
  104. export const JVB121_STATUS = 'conference.jvb121Status';
  105. /**
  106. * You are kicked from the conference.
  107. * @param {JitsiParticipant} the participant that initiated the kick.
  108. */
  109. export const KICKED = 'conference.kicked';
  110. /**
  111. * Participant was kicked from the conference.
  112. * @param {JitsiParticipant} the participant that initiated the kick.
  113. * @param {JitsiParticipant} the participant that was kicked.
  114. */
  115. export const PARTICIPANT_KICKED = 'conference.participant_kicked';
  116. /**
  117. * The Last N set is changed.
  118. *
  119. * @param {Array<string>|null} leavingEndpointIds the ids of all the endpoints
  120. * which are leaving Last N
  121. * @param {Array<string>|null} enteringEndpointIds the ids of all the endpoints
  122. * which are entering Last N
  123. */
  124. export const LAST_N_ENDPOINTS_CHANGED = 'conference.lastNEndpointsChanged';
  125. /**
  126. * Indicates that the room has been locked or unlocked.
  127. */
  128. export const LOCK_STATE_CHANGED = 'conference.lock_state_changed';
  129. /**
  130. * Indicates that the region of the media server (jitsi-videobridge) that we
  131. * are connected to changed (or was initially set).
  132. * @type {string} the region.
  133. */
  134. export const SERVER_REGION_CHANGED = 'conference.server_region_changed';
  135. /**
  136. * An event(library-private) fired when a new media session is added to the conference.
  137. * @type {string}
  138. * @private
  139. */
  140. export const _MEDIA_SESSION_STARTED = 'conference.media_session.started';
  141. /**
  142. * An event(library-private) fired when the conference switches the currently active media session.
  143. * @type {string}
  144. * @private
  145. */
  146. export const _MEDIA_SESSION_ACTIVE_CHANGED = 'conference.media_session.active_changed';
  147. /**
  148. * Indicates that the conference had changed to members only enabled/disabled.
  149. * The first argument of this event is a <tt>boolean</tt> which when set to
  150. * <tt>true</tt> means that the conference is running in members only mode.
  151. * You may need to use Lobby if supported to ask for permissions to enter the conference.
  152. */
  153. export const MEMBERS_ONLY_CHANGED = 'conference.membersOnlyChanged';
  154. /**
  155. * New text message was received.
  156. */
  157. export const MESSAGE_RECEIVED = 'conference.messageReceived';
  158. /**
  159. * Event indicates that the current selected input device has no signal
  160. */
  161. export const NO_AUDIO_INPUT = 'conference.no_audio_input';
  162. /**
  163. * Event indicates that the current microphone used by the conference is noisy.
  164. */
  165. export const NOISY_MIC = 'conference.noisy_mic';
  166. /**
  167. * Indicates that a message from the local user or from the Prosody backend
  168. * was received on the data channel.
  169. */
  170. export const NON_PARTICIPANT_MESSAGE_RECEIVED = 'conference.non_participant_message_received';
  171. /**
  172. * New private text message was received.
  173. */
  174. export const PRIVATE_MESSAGE_RECEIVED = 'conference.privateMessageReceived';
  175. /**
  176. * Event fired when JVB sends notification about interrupted/restored user's
  177. * ICE connection status or we detect local problem with the video track.
  178. * First argument is the ID of the participant and
  179. * the seconds is a string indicating if the connection is currently
  180. * - active - the connection is active
  181. * - inactive - the connection is inactive, was intentionally interrupted by
  182. * the bridge
  183. * - interrupted - a network problem occurred
  184. * - restoring - the connection was inactive and is restoring now
  185. *
  186. * The current status value can be obtained by calling
  187. * JitsiParticipant.getConnectionStatus().
  188. */
  189. export const PARTICIPANT_CONN_STATUS_CHANGED
  190. = 'conference.participant_conn_status_changed';
  191. /**
  192. * Indicates that the features of the participant has been changed.
  193. */
  194. export const PARTCIPANT_FEATURES_CHANGED
  195. = 'conference.partcipant_features_changed';
  196. /**
  197. * Indicates that a the value of a specific property of a specific participant
  198. * has changed.
  199. */
  200. export const PARTICIPANT_PROPERTY_CHANGED
  201. = 'conference.participant_property_changed';
  202. /**
  203. * Indicates that the conference has switched between JVB and P2P connections.
  204. * The first argument of this event is a <tt>boolean</tt> which when set to
  205. * <tt>true</tt> means that the conference is running on the P2P connection.
  206. */
  207. export const P2P_STATUS = 'conference.p2pStatus';
  208. /**
  209. * Indicates that phone number changed.
  210. */
  211. export const PHONE_NUMBER_CHANGED = 'conference.phoneNumberChanged';
  212. /**
  213. * The conference properties changed.
  214. * @type {string}
  215. */
  216. export const PROPERTIES_CHANGED = 'conference.propertiesChanged';
  217. /**
  218. * Indicates that recording state changed.
  219. */
  220. export const RECORDER_STATE_CHANGED = 'conference.recorderStateChanged';
  221. /**
  222. * Indicates that video SIP GW state changed.
  223. * @param {VideoSIPGWConstants} status.
  224. */
  225. export const VIDEO_SIP_GW_AVAILABILITY_CHANGED
  226. = 'conference.videoSIPGWAvailabilityChanged';
  227. /**
  228. * Indicates that video SIP GW Session state changed.
  229. * @param {options} event - {
  230. * {string} address,
  231. * {VideoSIPGWConstants} oldState,
  232. * {VideoSIPGWConstants} newState,
  233. * {string} displayName}
  234. * }.
  235. */
  236. export const VIDEO_SIP_GW_SESSION_STATE_CHANGED
  237. = 'conference.videoSIPGWSessionStateChanged';
  238. /**
  239. * Indicates that start muted settings changed.
  240. */
  241. export const START_MUTED_POLICY_CHANGED
  242. = 'conference.start_muted_policy_changed';
  243. /**
  244. * Indicates that the local user has started muted.
  245. */
  246. export const STARTED_MUTED = 'conference.started_muted';
  247. /**
  248. * Indicates that subject of the conference has changed.
  249. */
  250. export const SUBJECT_CHANGED = 'conference.subjectChanged';
  251. /**
  252. * Indicates that DTMF support changed.
  253. */
  254. export const SUSPEND_DETECTED = 'conference.suspendDetected';
  255. /**
  256. * Event indicates that local user is talking while he muted himself
  257. */
  258. export const TALK_WHILE_MUTED = 'conference.talk_while_muted';
  259. /**
  260. * A new media track was added to the conference. The event provides the
  261. * following parameters to its listeners:
  262. *
  263. * @param {JitsiTrack} track the added JitsiTrack
  264. */
  265. export const TRACK_ADDED = 'conference.trackAdded';
  266. /**
  267. * Audio levels of a media track ( attached to the conference) was changed.
  268. */
  269. export const TRACK_AUDIO_LEVEL_CHANGED = 'conference.audioLevelsChanged';
  270. /**
  271. * A media track ( attached to the conference) mute status was changed.
  272. * @param {JitsiParticipant|null} the participant that initiated the mute
  273. * if it is a remote mute.
  274. */
  275. export const TRACK_MUTE_CHANGED = 'conference.trackMuteChanged';
  276. /**
  277. * The media track was removed from the conference. The event provides the
  278. * following parameters to its listeners:
  279. *
  280. * @param {JitsiTrack} track the removed JitsiTrack
  281. */
  282. export const TRACK_REMOVED = 'conference.trackRemoved';
  283. /**
  284. * Notifies for transcription status changes. The event provides the
  285. * following parameters to its listeners:
  286. *
  287. * @param {String} status - The new status.
  288. */
  289. export const TRANSCRIPTION_STATUS_CHANGED
  290. = 'conference.transcriptionStatusChanged';
  291. /**
  292. * A new user joined the conference.
  293. */
  294. export const USER_JOINED = 'conference.userJoined';
  295. /**
  296. * A user has left the conference.
  297. */
  298. export const USER_LEFT = 'conference.userLeft';
  299. /**
  300. * User role changed.
  301. */
  302. export const USER_ROLE_CHANGED = 'conference.roleChanged';
  303. /**
  304. * User status changed.
  305. */
  306. export const USER_STATUS_CHANGED = 'conference.statusChanged';
  307. /**
  308. * Event indicates that the bot participant type changed.
  309. */
  310. export const BOT_TYPE_CHANGED = 'conference.bot_type_changed';
  311. /**
  312. * A new user joined the lobby room.
  313. */
  314. export const LOBBY_USER_JOINED = 'conference.lobby.userJoined';
  315. /**
  316. * A user from the lobby room has been update.
  317. */
  318. export const LOBBY_USER_UPDATED = 'conference.lobby.userUpdated';
  319. /**
  320. * A user left the lobby room.
  321. */
  322. export const LOBBY_USER_LEFT = 'conference.lobby.userLeft';
  323. /**
  324. * The local participant was approved to be able to unmute.
  325. * @param {options} event - {
  326. * {MediaType} mediaType
  327. * }.
  328. */
  329. export const AV_MODERATION_APPROVED = 'conference.av_moderation.approved';
  330. /**
  331. * The local participant was blocked to be able to unmute.
  332. * @param {options} event - {
  333. * {MediaType} mediaType
  334. * }.
  335. */
  336. export const AV_MODERATION_REJECTED = 'conference.av_moderation.rejected';
  337. /**
  338. * AV Moderation was enabled/disabled. The actor is the participant that is currently in the meeting,
  339. * or undefined if that participant has left the meeting.
  340. *
  341. * @param {options} event - {
  342. * {boolean} enabled,
  343. * {MediaType} mediaType,
  344. * {JitsiParticipant} actor
  345. * }.
  346. */
  347. export const AV_MODERATION_CHANGED = 'conference.av_moderation.changed';
  348. /**
  349. * AV Moderation, report for user being approved to unmute.
  350. * @param {options} event - {
  351. * {JitsiParticipant} participant,
  352. * {MediaType} mediaType
  353. * }.
  354. */
  355. export const AV_MODERATION_PARTICIPANT_APPROVED = 'conference.av_moderation.participant.approved';
  356. /**
  357. * AV Moderation, report for user being blocked to unmute.
  358. * @param {options} event - {
  359. * {JitsiParticipant} participant,
  360. * {MediaType} mediaType
  361. * }.
  362. */
  363. export const AV_MODERATION_PARTICIPANT_REJECTED = 'conference.av_moderation.participant.rejected';