Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. export enum JitsiTrackEvents {
  2. /**
  3. * The media track was removed to the conference.
  4. */
  5. LOCAL_TRACK_STOPPED = 'track.stopped',
  6. /**
  7. * Indicates that the local audio track is not receiving any audio input from
  8. * the microphone that is currently selected.
  9. */
  10. NO_AUDIO_INPUT = 'track.no_audio_input',
  11. /**
  12. * Indicates that the track is not receiving any data even though we expect it
  13. * to receive data (i.e. the stream is not stopped).
  14. */
  15. NO_DATA_FROM_SOURCE = 'track.no_data_from_source',
  16. /**
  17. * Audio levels of a this track was changed.
  18. * The first argument is a number with audio level value in range [0, 1].
  19. * The second argument is a <tt>TraceablePeerConnection</tt> which is the peer
  20. * connection which measured the audio level (one audio track can be added
  21. * to multiple peer connection at the same time). This argument is optional for
  22. * local tracks for which we can measure audio level without the peer
  23. * connection (the value will be <tt>undefined</tt>).
  24. *
  25. * NOTE The second argument should be treated as library internal and can be
  26. * removed at any time.
  27. */
  28. TRACK_AUDIO_LEVEL_CHANGED = 'track.audioLevelsChanged',
  29. /**
  30. * The audio output of the track was changed.
  31. */
  32. TRACK_AUDIO_OUTPUT_CHANGED = 'track.audioOutputChanged',
  33. /**
  34. * A media track mute status was changed.
  35. */
  36. TRACK_MUTE_CHANGED = 'track.trackMuteChanged',
  37. /**
  38. * Indicates that a new owner has been assigned to a remote track when SSRC rewriting is enabled.
  39. */
  40. TRACK_OWNER_SET = 'track.owner_set',
  41. /**
  42. * Event fired whenever video track's streaming changes.
  43. * First argument is the sourceName of the track and the second is a string indicating if the connection is
  44. * currently
  45. * - active - the connection is active.
  46. * - inactive - the connection is inactive, was intentionally interrupted by the bridge because of low BWE or
  47. * because of the endpoint falling out of last N.
  48. * - interrupted - a network problem occurred.
  49. * - restoring - the connection was inactive and is restoring now.
  50. *
  51. * The current status value can be obtained by calling JitsiRemoteTrack.getTrackStreamingStatus().
  52. */
  53. TRACK_STREAMING_STATUS_CHANGED = 'track.streaming_status_changed',
  54. /**
  55. * The video type("camera" or "desktop") of the track was changed.
  56. */
  57. TRACK_VIDEOTYPE_CHANGED = 'track.videoTypeChanged'
  58. }
  59. // exported for backward compatibility
  60. export const LOCAL_TRACK_STOPPED = JitsiTrackEvents.LOCAL_TRACK_STOPPED;
  61. export const TRACK_AUDIO_LEVEL_CHANGED = JitsiTrackEvents.TRACK_AUDIO_LEVEL_CHANGED;
  62. export const TRACK_AUDIO_OUTPUT_CHANGED = JitsiTrackEvents.TRACK_AUDIO_OUTPUT_CHANGED;
  63. export const TRACK_MUTE_CHANGED = JitsiTrackEvents.TRACK_MUTE_CHANGED;
  64. export const TRACK_VIDEOTYPE_CHANGED = JitsiTrackEvents.TRACK_VIDEOTYPE_CHANGED;
  65. export const NO_DATA_FROM_SOURCE = JitsiTrackEvents.NO_DATA_FROM_SOURCE;
  66. export const NO_AUDIO_INPUT = JitsiTrackEvents.NO_AUDIO_INPUT;
  67. export const TRACK_OWNER_SET = JitsiTrackEvents.TRACK_OWNER_SET;
  68. export const TRACK_STREAMING_STATUS_CHANGED = JitsiTrackEvents.TRACK_STREAMING_STATUS_CHANGED;