Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Events.ts 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 some logs that will end up in stats services like
  16. * CallStats (if enabled).
  17. */
  18. BEFORE_DISPOSED = 'statistics.before_disposed',
  19. /**
  20. * An event carrying all statistics by ssrc.
  21. */
  22. BYTE_SENT_STATS = 'statistics.byte_sent_stats',
  23. /**
  24. * An event carrying connection statistics.
  25. *
  26. * @param {object} connectionStats - The connection statistics carried by the
  27. * event such as <tt>bandwidth</tt>, <tt>bitrate</tt>, <tt>packetLoss</tt>,
  28. * <tt>resolution</tt>, and <tt>transport</tt>.
  29. */
  30. CONNECTION_STATS = 'statistics.connectionstats',
  31. /**
  32. * An event carrying performance stats.
  33. */
  34. LONG_TASKS_STATS = 'statistics.long_tasks_stats'
  35. };
  36. // exported for backward compatibility
  37. export const AUDIO_LEVEL = Events.AUDIO_LEVEL;
  38. export const BEFORE_DISPOSED = Events.BEFORE_DISPOSED;
  39. export const BYTE_SENT_STATS = Events.BYTE_SENT_STATS;
  40. export const CONNECTION_STATS = Events.CONNECTION_STATS;
  41. export const LONG_TASKS_STATS = Events.LONG_TASKS_STATS;