modified lib-jitsi-meet dev repo
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

RTCEvents.js 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. const RTCEvents = {
  2. /**
  3. * Indicates error while create answer call.
  4. */
  5. CREATE_ANSWER_FAILED: 'rtc.create_answer_failed',
  6. /**
  7. * Indicates error while create offer call.
  8. */
  9. CREATE_OFFER_FAILED: 'rtc.create_offer_failed',
  10. DATA_CHANNEL_OPEN: 'rtc.data_channel_open',
  11. ENDPOINT_CONN_STATUS_CHANGED: 'rtc.endpoint_conn_status_changed',
  12. DOMINANT_SPEAKER_CHANGED: 'rtc.dominant_speaker_changed',
  13. LASTN_ENDPOINT_CHANGED: 'rtc.lastn_endpoint_changed',
  14. FORWARDED_SOURCES_CHANGED: 'rtc.forwarded_sources_changed',
  15. /**
  16. * Event emitted when the user granted/blocked a permission for the camera / mic.
  17. * Used to keep track of the granted permissions on browsers which don't
  18. * support the Permissions API.
  19. */
  20. PERMISSIONS_CHANGED: 'rtc.permissions_changed',
  21. SENDER_VIDEO_CONSTRAINTS_CHANGED: 'rtc.sender_video_constraints_changed',
  22. /**
  23. * Event emitted when {@link RTC.setLastN} method is called to update with
  24. * the new value set.
  25. * The first argument is the value passed to {@link RTC.setLastN}.
  26. */
  27. LASTN_VALUE_CHANGED: 'rtc.lastn_value_changed',
  28. /**
  29. * Event emitted when ssrc for a local track is extracted and stored
  30. * in {@link TraceablePeerConnection}.
  31. * @param {JitsiLocalTrack} track which ssrc was updated
  32. * @param {string} ssrc that was stored
  33. */
  34. LOCAL_TRACK_SSRC_UPDATED: 'rtc.local_track_ssrc_updated',
  35. /**
  36. * The max enabled resolution of a local video track was changed.
  37. */
  38. LOCAL_TRACK_MAX_ENABLED_RESOLUTION_CHANGED: 'rtc.local_track_max_enabled_resolution_changed',
  39. TRACK_ATTACHED: 'rtc.track_attached',
  40. /**
  41. * Event fired when we remote track is added to the conference.
  42. * 1st event argument is the added <tt>JitsiRemoteTrack</tt> instance.
  43. **/
  44. REMOTE_TRACK_ADDED: 'rtc.remote_track_added',
  45. // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
  46. // (currently implemented for local tracks only)
  47. REMOTE_TRACK_MUTE: 'rtc.remote_track_mute',
  48. /**
  49. * Indicates that the remote track has been removed from the conference.
  50. * 1st event argument is the removed {@link JitsiRemoteTrack} instance.
  51. */
  52. REMOTE_TRACK_REMOVED: 'rtc.remote_track_removed',
  53. // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
  54. // (currently implemented for local tracks only)
  55. REMOTE_TRACK_UNMUTE: 'rtc.remote_track_unmute',
  56. /**
  57. * Indicates error while set local description.
  58. */
  59. SET_LOCAL_DESCRIPTION_FAILED: 'rtc.set_local_description_failed',
  60. /**
  61. * Indicates error while set remote description.
  62. */
  63. SET_REMOTE_DESCRIPTION_FAILED: 'rtc.set_remote_description_failed',
  64. AUDIO_OUTPUT_DEVICE_CHANGED: 'rtc.audio_output_device_changed',
  65. DEVICE_LIST_CHANGED: 'rtc.device_list_changed',
  66. /**
  67. * Indicates that the list with available devices will change.
  68. */
  69. DEVICE_LIST_WILL_CHANGE: 'rtc.device_list_will_change',
  70. DEVICE_LIST_AVAILABLE: 'rtc.device_list_available',
  71. /**
  72. * Indicates that a message from another participant is received on
  73. * data channel.
  74. */
  75. ENDPOINT_MESSAGE_RECEIVED: 'rtc.endpoint_message_received',
  76. /**
  77. * Indicates that the remote endpoint stats have been received on data channnel.
  78. */
  79. ENDPOINT_STATS_RECEIVED: 'rtc.endpoint_stats_received',
  80. /**
  81. * Designates an event indicating that the local ICE username fragment of
  82. * the jingle session has changed.
  83. * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
  84. * is the source of the event.
  85. * The second argument is the actual "ufrag" string.
  86. */
  87. LOCAL_UFRAG_CHANGED: 'rtc.local_ufrag_changed',
  88. /**
  89. * Designates an event indicating that the local ICE username fragment of
  90. * the jingle session has changed.
  91. * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
  92. * is the source of the event.
  93. * The second argument is the actual "ufrag" string.
  94. */
  95. REMOTE_UFRAG_CHANGED: 'rtc.remote_ufrag_changed'
  96. };
  97. module.exports = RTCEvents;