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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // @flow
  2. /**
  3. * An enumeration of the different virtual background types.
  4. *
  5. * @enum {string}
  6. */
  7. export const VIRTUAL_BACKGROUND_TYPE = {
  8. IMAGE: 'image',
  9. DESKTOP_SHARE: 'desktop-share',
  10. BLUR: 'blur',
  11. NONE: 'none'
  12. };
  13. export type Image = {
  14. tooltip?: string,
  15. id: string,
  16. src: string
  17. }
  18. // The limit of virtual background uploads is 24. When the number
  19. // of uploads is 25 we trigger the deleteStoredImage function to delete
  20. // the first/oldest uploaded background.
  21. export const BACKGROUNDS_LIMIT = 25;
  22. export const IMAGES: Array<Image> = [
  23. {
  24. tooltip: 'image1',
  25. id: '1',
  26. src: 'images/virtual-background/background-1.jpg'
  27. },
  28. {
  29. tooltip: 'image2',
  30. id: '2',
  31. src: 'images/virtual-background/background-2.jpg'
  32. },
  33. {
  34. tooltip: 'image3',
  35. id: '3',
  36. src: 'images/virtual-background/background-3.jpg'
  37. },
  38. {
  39. tooltip: 'image4',
  40. id: '4',
  41. src: 'images/virtual-background/background-4.jpg'
  42. },
  43. {
  44. tooltip: 'image5',
  45. id: '5',
  46. src: 'images/virtual-background/background-5.jpg'
  47. },
  48. {
  49. tooltip: 'image6',
  50. id: '6',
  51. src: 'images/virtual-background/background-6.jpg'
  52. },
  53. {
  54. tooltip: 'image7',
  55. id: '7',
  56. src: 'images/virtual-background/background-7.jpg'
  57. }
  58. ];