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.

constants.js 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // @flow
  2. /**
  3. * The identifier of the sound to be played when e2ee is disabled.
  4. *
  5. * @type {string}
  6. */
  7. export const E2EE_OFF_SOUND_ID = 'E2EE_OFF_SOUND';
  8. /**
  9. * The identifier of the sound to be played when e2ee is enabled.
  10. *
  11. * @type {string}
  12. */
  13. export const E2EE_ON_SOUND_ID = 'E2EE_ON_SOUND';
  14. /**
  15. * The number of participants after which e2ee maxMode is set to MAX_MODE.ENABLED.
  16. *
  17. * @type {integer}
  18. */
  19. export const MAX_MODE_LIMIT = 20;
  20. /**
  21. * If the number of participants is greater then MAX_MODE_LIMIT + MAX_MODE_THRESHOLD
  22. * e2ee maxMode is set to MAX_MODE.THRESHOLD_EXCEEDED.
  23. *
  24. * @type {integer}
  25. */
  26. export const MAX_MODE_THRESHOLD = 5;
  27. export const MAX_MODE = {
  28. /**
  29. * Mode for which the e2ee can be enabled or disabled.
  30. * If e2ee is enabled, e2ee section is enabled with a warning text.
  31. * If e2ee is disabled, e2ee section is disabled with a warning text.
  32. *
  33. * @type {string}
  34. */
  35. ENABLED: 'max-mode-enabled',
  36. /**
  37. * Mode for which the e2ee and the e2ee section are automatically disabled.
  38. *
  39. * @type {string}
  40. */
  41. THRESHOLD_EXCEEDED: 'max-mode-threshold-exceeded',
  42. /**
  43. * The default e2ee maxMode, e2ee can be enabled/disabled, e2ee section is enabled.
  44. *
  45. * @type {string}
  46. */
  47. DISABLED: 'max-mode-disabled'
  48. };