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

JitsiConferenceEvents.js 7.6KB

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