modified lib-jitsi-meet dev repo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

JitsiTrackEvents.ts 3.4KB

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