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.

Events.ts 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. export enum Events {
  2. /**
  3. * Notifies about audio level in RTP statistics by SSRC.
  4. *
  5. * @param ssrc - The synchronization source identifier (SSRC) of the
  6. * endpoint/participant whose audio level is being reported.
  7. * @param {number} audioLevel - The audio level of <tt>ssrc</tt> according to
  8. * RTP statistics.
  9. * @param {boolean} isLocal - <tt>true</tt> if <tt>ssrc</tt> identifies the
  10. * local endpoint/participant; otherwise, <tt>false</tt>.
  11. */
  12. AUDIO_LEVEL = 'statistics.audioLevel',
  13. /**
  14. * An event fired just before the statistics module gets disposes and it's
  15. * the last chance to submit logs.
  16. */
  17. BEFORE_DISPOSED = 'statistics.before_disposed',
  18. /**
  19. * An event carrying all statistics by ssrc.
  20. */
  21. BYTE_SENT_STATS = 'statistics.byte_sent_stats',
  22. /**
  23. * An event carrying connection statistics.
  24. *
  25. * @param {object} connectionStats - The connection statistics carried by the
  26. * event such as <tt>bandwidth</tt>, <tt>bitrate</tt>, <tt>packetLoss</tt>,
  27. * <tt>resolution</tt>, and <tt>transport</tt>.
  28. */
  29. CONNECTION_STATS = 'statistics.connectionstats',
  30. /**
  31. * An event carrying the encode time stats for all the local video sources.
  32. */
  33. ENCODE_TIME_STATS = 'statistics.encode_time_stats',
  34. /**
  35. * An event carrying performance stats.
  36. */
  37. LONG_TASKS_STATS = 'statistics.long_tasks_stats'
  38. }
  39. // exported for backward compatibility
  40. export const AUDIO_LEVEL = Events.AUDIO_LEVEL;
  41. export const BEFORE_DISPOSED = Events.BEFORE_DISPOSED;
  42. export const BYTE_SENT_STATS = Events.BYTE_SENT_STATS;
  43. export const CONNECTION_STATS = Events.CONNECTION_STATS;
  44. export const ENCODE_TIME_STATS = Events.ENCODE_TIME_STATS;
  45. export const LONG_TASKS_STATS = Events.LONG_TASKS_STATS;