Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

RTCEvents.js 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. * FIXME not used (yet), but hook up with create offer failure once added
  9. */
  10. CREATE_OFFER_FAILED: 'rtc.create_offer_failed',
  11. RTC_READY: 'rtc.ready',
  12. DATA_CHANNEL_OPEN: 'rtc.data_channel_open',
  13. ENDPOINT_CONN_STATUS_CHANGED: 'rtc.endpoint_conn_status_changed',
  14. DOMINANT_SPEAKER_CHANGED: 'rtc.dominant_speaker_changed',
  15. LASTN_ENDPOINT_CHANGED: 'rtc.lastn_endpoint_changed',
  16. AVAILABLE_DEVICES_CHANGED: 'rtc.available_devices_changed',
  17. TRACK_ATTACHED: 'rtc.track_attached',
  18. /**
  19. * Event fired when we remote track is added to the conference.
  20. * 1st event argument is the added <tt>JitsiRemoteTrack</tt> instance.
  21. **/
  22. REMOTE_TRACK_ADDED: 'rtc.remote_track_added',
  23. // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
  24. // (currently implemented for local tracks only)
  25. REMOTE_TRACK_MUTE: 'rtc.remote_track_mute',
  26. /**
  27. * Indicates that the remote track has been removed from the conference.
  28. * 1st event argument is the removed {@link JitsiRemoteTrack} instance.
  29. */
  30. REMOTE_TRACK_REMOVED: 'rtc.remote_track_removed',
  31. // FIXME get rid of this event in favour of NO_DATA_FROM_SOURCE event
  32. // (currently implemented for local tracks only)
  33. REMOTE_TRACK_UNMUTE: 'rtc.remote_track_unmute',
  34. /**
  35. * Indicates error while set local description.
  36. */
  37. SET_LOCAL_DESCRIPTION_FAILED: 'rtc.set_local_description_failed',
  38. /**
  39. * Indicates error while set remote description.
  40. */
  41. SET_REMOTE_DESCRIPTION_FAILED: 'rtc.set_remote_description_failed',
  42. AUDIO_OUTPUT_DEVICE_CHANGED: 'rtc.audio_output_device_changed',
  43. DEVICE_LIST_CHANGED: 'rtc.device_list_changed',
  44. DEVICE_LIST_AVAILABLE: 'rtc.device_list_available',
  45. /**
  46. * Indicates that a message from another participant is received on
  47. * data channel.
  48. */
  49. ENDPOINT_MESSAGE_RECEIVED: 'rtc.endpoint_message_received',
  50. /**
  51. * Designates an event indicating that the local ICE username fragment of
  52. * the jingle session has changed.
  53. * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
  54. * is the source of the event.
  55. * The second argument is the actual "ufrag" string.
  56. */
  57. LOCAL_UFRAG_CHANGED: 'rtc.local_ufrag_changed',
  58. /**
  59. * Designates an event indicating that the local ICE username fragment of
  60. * the jingle session has changed.
  61. * The first argument of the vent is <tt>TraceablePeerConnection</tt> which
  62. * is the source of the event.
  63. * The second argument is the actual "ufrag" string.
  64. */
  65. REMOTE_UFRAG_CHANGED: 'rtc.remote_ufrag_changed'
  66. };
  67. module.exports = RTCEvents;