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.js 2.2KB

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