選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

RTCEvents.ts 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. export enum RTCEvents {
  2. /**
  3. * Designates an event indicating that the audio output device has changed.
  4. */
  5. AUDIO_OUTPUT_DEVICE_CHANGED = 'rtc.audio_output_device_changed',
  6. /**
  7. * Designates an event indicating that some audio SSRCs that have already been signaled will now map to new remote
  8. * sources.
  9. */
  10. AUDIO_SSRCS_REMAPPED = 'rtc.audio_ssrcs_remapped',
  11. /**
  12. * Designates an event indicating that the bridge bandwidth estimation stats have been received.
  13. */
  14. BRIDGE_BWE_STATS_RECEIVED = 'rtc.bridge_bwe_stats_received',
  15. /**
  16. * Indicates that the data channel has been closed.
  17. */
  18. DATA_CHANNEL_CLOSED = 'rtc.data_channel_closed',
  19. /**
  20. * Indicates that the data channel has been opened.
  21. */
  22. DATA_CHANNEL_OPEN = 'rtc.data_channel_open',
  23. /**
  24. * Indicates that the list with available devices is now available.
  25. */
  26. DEVICE_LIST_AVAILABLE = 'rtc.device_list_available',
  27. /**
  28. * Indicates that the list with available devices has changed.
  29. */
  30. DEVICE_LIST_CHANGED = 'rtc.device_list_changed',
  31. /**
  32. * Indicates that the list with available devices will change.
  33. */
  34. DEVICE_LIST_WILL_CHANGE = 'rtc.device_list_will_change',
  35. /**
  36. * Indicates that the dominant speaker has changed.
  37. */
  38. DOMINANT_SPEAKER_CHANGED = 'rtc.dominant_speaker_changed',
  39. /**
  40. * Indicates that the connection status of the endpoint has changed.
  41. */
  42. ENDPOINT_CONN_STATUS_CHANGED = 'rtc.endpoint_conn_status_changed',
  43. /**
  44. * Indicates that a message from another participant is received on data channel.
  45. */
  46. ENDPOINT_MESSAGE_RECEIVED = 'rtc.endpoint_message_received',
  47. /**
  48. * Indicates that the remote endpoint stats have been received on data channel.
  49. */
  50. ENDPOINT_STATS_RECEIVED = 'rtc.endpoint_stats_received',
  51. /**
  52. * Indicates that the list of sources currently being forwarded by the bridge has changed.
  53. */
  54. FORWARDED_SOURCES_CHANGED = 'rtc.forwarded_sources_changed',
  55. /**
  56. * Event emitted when {@link RTC.setLastN} method is called to update with the new value set.
  57. * The first argument is the value passed to {@link RTC.setLastN}.
  58. */
  59. LASTN_VALUE_CHANGED = 'rtc.lastn_value_changed',
  60. /**
  61. * The max enabled resolution of a local video track was changed.
  62. */
  63. LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED = 'rtc.local_track_max_enabled_resolution_changed',
  64. /**
  65. * Designates an event indicating that the local ICE username fragment of
  66. * the jingle session has changed.
  67. * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
  68. * is the source of the event.
  69. * The second argument is the actual "ufrag" string.
  70. */
  71. LOCAL_UFRAG_CHANGED = 'rtc.local_ufrag_changed',
  72. /**
  73. * Event emitted when the user granted/blocked a permission for the camera / mic.
  74. * Used to keep track of the granted permissions on browsers which don't
  75. * support the Permissions API.
  76. */
  77. PERMISSIONS_CHANGED = 'rtc.permissions_changed',
  78. /**
  79. * Event fired when we remote track is added to the conference.
  80. * 1st event argument is the added <tt>JitsiRemoteTrack</tt> instance.
  81. **/
  82. REMOTE_TRACK_ADDED = 'rtc.remote_track_added',
  83. // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
  84. // (currently implemented for local tracks only)
  85. REMOTE_TRACK_MUTE = 'rtc.remote_track_mute',
  86. /**
  87. * Indicates that the remote track has been removed from the conference.
  88. * 1st event argument is the removed {@link JitsiRemoteTrack} instance.
  89. */
  90. REMOTE_TRACK_REMOVED = 'rtc.remote_track_removed',
  91. // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
  92. // (currently implemented for local tracks only)
  93. REMOTE_TRACK_UNMUTE = 'rtc.remote_track_unmute',
  94. /**
  95. * Designates an event indicating that the local ICE username fragment of the jingle session has changed.
  96. * The first argument of the vent is <tt>TraceablePeerConnection</tt> which is the source of the event.
  97. * The second argument is the actual "ufrag" string.
  98. */
  99. REMOTE_UFRAG_CHANGED = 'rtc.remote_ufrag_changed',
  100. /**
  101. * Indicates that sender constraints requested by the bridge for this endpoint have changed.
  102. */
  103. SENDER_VIDEO_CONSTRAINTS_CHANGED = 'rtc.sender_video_constraints_changed',
  104. /**
  105. * Designates an event indicating that some video SSRCs that have already been signaled will now map to new remote
  106. * sources.
  107. */
  108. VIDEO_SSRCS_REMAPPED = 'rtc.video_ssrcs_remapped'
  109. }
  110. export const BRIDGE_BWE_STATS_RECEIVED = RTCEvents.BRIDGE_BWE_STATS_RECEIVED;
  111. export const DATA_CHANNEL_OPEN = RTCEvents.DATA_CHANNEL_OPEN;
  112. export const DATA_CHANNEL_CLOSED = RTCEvents.DATA_CHANNEL_CLOSED;
  113. export const ENDPOINT_CONN_STATUS_CHANGED = RTCEvents.ENDPOINT_CONN_STATUS_CHANGED;
  114. export const DOMINANT_SPEAKER_CHANGED = RTCEvents.DOMINANT_SPEAKER_CHANGED;
  115. export const FORWARDED_SOURCES_CHANGED = RTCEvents.FORWARDED_SOURCES_CHANGED;
  116. export const PERMISSIONS_CHANGED = RTCEvents.PERMISSIONS_CHANGED;
  117. export const SENDER_VIDEO_CONSTRAINTS_CHANGED = RTCEvents.SENDER_VIDEO_CONSTRAINTS_CHANGED;
  118. export const LASTN_VALUE_CHANGED = RTCEvents.LASTN_VALUE_CHANGED;
  119. export const LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED = RTCEvents.LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED;
  120. export const REMOTE_TRACK_ADDED = RTCEvents.REMOTE_TRACK_ADDED;
  121. export const REMOTE_TRACK_MUTE = RTCEvents.REMOTE_TRACK_MUTE;
  122. export const REMOTE_TRACK_REMOVED = RTCEvents.REMOTE_TRACK_REMOVED;
  123. export const REMOTE_TRACK_UNMUTE = RTCEvents.REMOTE_TRACK_UNMUTE;
  124. export const AUDIO_OUTPUT_DEVICE_CHANGED = RTCEvents.AUDIO_OUTPUT_DEVICE_CHANGED;
  125. export const DEVICE_LIST_CHANGED = RTCEvents.DEVICE_LIST_CHANGED;
  126. export const DEVICE_LIST_WILL_CHANGE = RTCEvents.DEVICE_LIST_WILL_CHANGE;
  127. export const DEVICE_LIST_AVAILABLE = RTCEvents.DEVICE_LIST_AVAILABLE;
  128. export const ENDPOINT_MESSAGE_RECEIVED = RTCEvents.ENDPOINT_MESSAGE_RECEIVED;
  129. export const ENDPOINT_STATS_RECEIVED = RTCEvents.ENDPOINT_STATS_RECEIVED;
  130. export const LOCAL_UFRAG_CHANGED = RTCEvents.LOCAL_UFRAG_CHANGED;
  131. export const REMOTE_UFRAG_CHANGED = RTCEvents.REMOTE_UFRAG_CHANGED;
  132. export const VIDEO_SSRCS_REMAPPED = RTCEvents.VIDEO_SSRCS_REMAPPED;
  133. export const AUDIO_SSRCS_REMAPPED = RTCEvents.AUDIO_SSRCS_REMAPPED;
  134. // TODO: this was a pre-ES6 module using module.exports = RTCEvents which doesn't translate well
  135. // it is used in a number of places and should be updated to use the named export
  136. export default RTCEvents;