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

RTCEvents.js 2.8KB

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