Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

JitsiConferenceEvents.js 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /**
  2. * Enumeration with the events for the conference.
  3. * @type {{string: string}}
  4. */
  5. var JitsiConferenceEvents = {
  6. /**
  7. * A new media track was added to the conference. The event provides the
  8. * following parameters to its listeners:
  9. *
  10. * @param {JitsiTrack} track the added JitsiTrack
  11. */
  12. TRACK_ADDED: "conference.trackAdded",
  13. /**
  14. * The media track was removed from the conference. The event provides the
  15. * following parameters to its listeners:
  16. *
  17. * @param {JitsiTrack} track the removed JitsiTrack
  18. */
  19. TRACK_REMOVED: "conference.trackRemoved",
  20. /**
  21. * The dominant speaker was changed.
  22. */
  23. DOMINANT_SPEAKER_CHANGED: "conference.dominantSpeaker",
  24. /**
  25. * A new user joinned the conference.
  26. */
  27. USER_JOINED: "conference.userJoined",
  28. /**
  29. * A user has left the conference.
  30. */
  31. USER_LEFT: "conference.userLeft",
  32. /**
  33. * User role changed.
  34. */
  35. USER_ROLE_CHANGED: "conference.roleChanged",
  36. /**
  37. * User status changed.
  38. */
  39. USER_STATUS_CHANGED: "conference.statusChanged",
  40. /**
  41. * New text message was received.
  42. */
  43. MESSAGE_RECEIVED: "conference.messageReceived",
  44. /**
  45. * A user has changed it display name
  46. */
  47. DISPLAY_NAME_CHANGED: "conference.displayNameChanged",
  48. /**
  49. * Indicates that subject of the conference has changed.
  50. */
  51. SUBJECT_CHANGED: "conference.subjectChanged",
  52. /**
  53. * A participant avatar has changed.
  54. */
  55. AVATAR_CHANGED: "conference.avatarChanged",
  56. /**
  57. * New local connection statistics are received.
  58. */
  59. CONNECTION_STATS: "conference.connectionStats",
  60. /**
  61. * The Last N set is changed.
  62. */
  63. LAST_N_ENDPOINTS_CHANGED: "conference.lastNEndpointsChanged",
  64. /**
  65. * You are included / excluded in somebody's last N set
  66. */
  67. IN_LAST_N_CHANGED: "conference.inLastNChanged",
  68. /**
  69. * A media track ( attached to the conference) mute status was changed.
  70. */
  71. TRACK_MUTE_CHANGED: "conference.trackMuteChanged",
  72. /**
  73. * Audio levels of a media track ( attached to the conference) was changed.
  74. */
  75. TRACK_AUDIO_LEVEL_CHANGED: "conference.audioLevelsChanged",
  76. /**
  77. * Indicates that the connection to the conference has been interrupted
  78. * for some reason.
  79. */
  80. CONNECTION_INTERRUPTED: "conference.connectionInterrupted",
  81. /**
  82. * Indicates that the connection to the conference has been restored.
  83. */
  84. CONNECTION_RESTORED: "conference.connectionRestored",
  85. /**
  86. * Indicates that conference failed.
  87. */
  88. CONFERENCE_FAILED: "conference.failed",
  89. /**
  90. * Indicates that an error occured.
  91. */
  92. CONFERENCE_ERROR: "conference.error",
  93. /**
  94. * Indicates that conference has been joined. The event does NOT provide any
  95. * parameters to its listeners.
  96. */
  97. CONFERENCE_JOINED: "conference.joined",
  98. /**
  99. * Indicates that conference has been left.
  100. */
  101. CONFERENCE_LEFT: "conference.left",
  102. /**
  103. * You are kicked from the conference.
  104. */
  105. KICKED: "conferenece.kicked",
  106. /**
  107. * Indicates that start muted settings changed.
  108. */
  109. START_MUTED_POLICY_CHANGED: "conference.start_muted_policy_changed",
  110. /**
  111. * Indicates that the local user has started muted.
  112. */
  113. STARTED_MUTED: "conference.started_muted",
  114. /**
  115. * Indicates that DTMF support changed.
  116. */
  117. DTMF_SUPPORT_CHANGED: "conference.dtmfSupportChanged",
  118. /**
  119. * Indicates that recording state changed.
  120. */
  121. RECORDER_STATE_CHANGED: "conference.recorderStateChanged",
  122. /**
  123. * Indicates that phone number changed.
  124. */
  125. PHONE_NUMBER_CHANGED: "conference.phoneNumberChanged",
  126. /**
  127. * Indicates that available devices changed.
  128. */
  129. AVAILABLE_DEVICES_CHANGED: "conference.availableDevicesChanged",
  130. /**
  131. * Indicates that authentication status changed.
  132. */
  133. AUTH_STATUS_CHANGED: "conference.auth_status_changed",
  134. /**
  135. * Indicates that a the value of a specific property of a specific
  136. * participant has changed.
  137. */
  138. PARTICIPANT_PROPERTY_CHANGED: "conference.participant_property_changed",
  139. /**
  140. * Indicates that a message from another participant is received on
  141. * data channel.
  142. */
  143. DATACHANNEL_ENDPOINT_MESSAGE_RECEIVED:
  144. "conference.datachannel_endpoint_message_received"
  145. };
  146. module.exports = JitsiConferenceEvents;