Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

RTCEvents.js 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. RTC_READY: 'rtc.ready',
  11. DATA_CHANNEL_OPEN: 'rtc.data_channel_open',
  12. ENDPOINT_CONN_STATUS_CHANGED: 'rtc.endpoint_conn_status_changed',
  13. DOMINANT_SPEAKER_CHANGED: 'rtc.dominant_speaker_changed',
  14. LASTN_ENDPOINT_CHANGED: 'rtc.lastn_endpoint_changed',
  15. /**
  16. * Event emitted when {@link RTC.setLastN} method is called to update with
  17. * the new value set.
  18. * The first argument is the value passed to {@link RTC.setLastN}.
  19. */
  20. LASTN_VALUE_CHANGED: 'rtc.lastn_value_changed',
  21. /**
  22. * Event emitted when ssrc for a local track is extracted and stored
  23. * in {@link TraceablePeerConnection}.
  24. * @param {JitsiLocalTrack} track which ssrc was updated
  25. * @param {string} ssrc that was stored
  26. */
  27. LOCAL_TRACK_SSRC_UPDATED: 'rtc.local_track_ssrc_updated',
  28. AVAILABLE_DEVICES_CHANGED: 'rtc.available_devices_changed',
  29. TRACK_ATTACHED: 'rtc.track_attached',
  30. /**
  31. * Event fired when we remote track is added to the conference.
  32. * 1st event argument is the added <tt>JitsiRemoteTrack</tt> instance.
  33. **/
  34. REMOTE_TRACK_ADDED: 'rtc.remote_track_added',
  35. // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
  36. // (currently implemented for local tracks only)
  37. REMOTE_TRACK_MUTE: 'rtc.remote_track_mute',
  38. /**
  39. * Indicates that the remote track has been removed from the conference.
  40. * 1st event argument is the removed {@link JitsiRemoteTrack} instance.
  41. */
  42. REMOTE_TRACK_REMOVED: 'rtc.remote_track_removed',
  43. // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
  44. // (currently implemented for local tracks only)
  45. REMOTE_TRACK_UNMUTE: 'rtc.remote_track_unmute',
  46. /**
  47. * Indicates error while set local description.
  48. */
  49. SET_LOCAL_DESCRIPTION_FAILED: 'rtc.set_local_description_failed',
  50. /**
  51. * Indicates error while set remote description.
  52. */
  53. SET_REMOTE_DESCRIPTION_FAILED: 'rtc.set_remote_description_failed',
  54. AUDIO_OUTPUT_DEVICE_CHANGED: 'rtc.audio_output_device_changed',
  55. DEVICE_LIST_CHANGED: 'rtc.device_list_changed',
  56. DEVICE_LIST_AVAILABLE: 'rtc.device_list_available',
  57. /**
  58. * Indicates that a message from another participant is received on
  59. * data channel.
  60. */
  61. ENDPOINT_MESSAGE_RECEIVED: 'rtc.endpoint_message_received',
  62. /**
  63. * Designates an event indicating that the local ICE username fragment of
  64. * the jingle session has changed.
  65. * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
  66. * is the source of the event.
  67. * The second argument is the actual "ufrag" string.
  68. */
  69. LOCAL_UFRAG_CHANGED: 'rtc.local_ufrag_changed',
  70. /**
  71. * Designates an event indicating that the local ICE username fragment of
  72. * the jingle session has changed.
  73. * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
  74. * is the source of the event.
  75. * The second argument is the actual "ufrag" string.
  76. */
  77. REMOTE_UFRAG_CHANGED: 'rtc.remote_ufrag_changed'
  78. };
  79. module.exports = RTCEvents;