You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JitsiConferenceEvents.js 11KB

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