選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

constants.ts 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. import { ToolbarButton } from './types';
  2. /**
  3. * Thresholds for displaying toolbox buttons.
  4. */
  5. export const THRESHOLDS = [
  6. {
  7. width: 565,
  8. order: [ 'microphone', 'camera', 'desktop', 'chat', 'raisehand', 'reactions', 'participants-pane', 'tileview' ]
  9. },
  10. {
  11. width: 520,
  12. order: [ 'microphone', 'camera', 'desktop', 'chat', 'raisehand', 'participants-pane', 'tileview' ]
  13. },
  14. {
  15. width: 470,
  16. order: [ 'microphone', 'camera', 'desktop', 'chat', 'raisehand', 'participants-pane' ]
  17. },
  18. {
  19. width: 420,
  20. order: [ 'microphone', 'camera', 'desktop', 'chat', 'participants-pane' ]
  21. },
  22. {
  23. width: 370,
  24. order: [ 'microphone', 'camera', 'chat', 'participants-pane' ]
  25. },
  26. {
  27. width: 225,
  28. order: [ 'microphone', 'camera', 'chat' ]
  29. },
  30. {
  31. width: 200,
  32. order: [ 'microphone', 'camera' ]
  33. }
  34. ];
  35. /**
  36. * Main toolbar buttons priority used to determine which button should be picked to fill empty spaces for disabled
  37. * buttons.
  38. */
  39. export const MAIN_TOOLBAR_BUTTONS_PRIORITY = [
  40. 'microphone',
  41. 'camera',
  42. 'desktop',
  43. 'chat',
  44. 'raisehand',
  45. 'reactions',
  46. 'participants-pane',
  47. 'tileview',
  48. 'invite',
  49. 'toggle-camera',
  50. 'videoquality',
  51. 'fullscreen',
  52. 'security',
  53. 'closedcaptions',
  54. 'recording',
  55. 'livestreaming',
  56. 'linktosalesforce',
  57. 'sharedvideo',
  58. 'shareaudio',
  59. 'noisesuppression',
  60. 'whiteboard',
  61. 'etherpad',
  62. 'select-background',
  63. 'stats',
  64. 'settings',
  65. 'shortcuts',
  66. 'profile',
  67. 'embedmeeting',
  68. 'feedback',
  69. 'download',
  70. 'help'
  71. ];
  72. export const TOOLBAR_TIMEOUT = 4000;
  73. export const DRAWER_MAX_HEIGHT = '80dvh - 64px';
  74. // Around 300 to be displayed above components like chat
  75. export const ZINDEX_DIALOG_PORTAL = 302;
  76. /**
  77. * Color for spinner displayed in the toolbar.
  78. */
  79. export const SPINNER_COLOR = '#929292';
  80. /**
  81. * The list of all possible UI buttons.
  82. *
  83. * @protected
  84. * @type Array<string>
  85. */
  86. export const TOOLBAR_BUTTONS: ToolbarButton[] = [
  87. 'camera',
  88. 'chat',
  89. 'closedcaptions',
  90. 'desktop',
  91. 'download',
  92. 'embedmeeting',
  93. 'etherpad',
  94. 'feedback',
  95. 'filmstrip',
  96. 'fullscreen',
  97. 'hangup',
  98. 'help',
  99. 'highlight',
  100. 'invite',
  101. 'linktosalesforce',
  102. 'livestreaming',
  103. 'microphone',
  104. 'mute-everyone',
  105. 'mute-video-everyone',
  106. 'participants-pane',
  107. 'profile',
  108. 'raisehand',
  109. 'recording',
  110. 'security',
  111. 'select-background',
  112. 'settings',
  113. 'shareaudio',
  114. 'noisesuppression',
  115. 'sharedvideo',
  116. 'shortcuts',
  117. 'stats',
  118. 'tileview',
  119. 'toggle-camera',
  120. 'videoquality',
  121. 'whiteboard'
  122. ];
  123. /**
  124. * The toolbar buttons to show when in visitors mode.
  125. */
  126. export const VISITORS_MODE_BUTTONS: ToolbarButton[] = [
  127. 'chat',
  128. 'closedcaptions',
  129. 'hangup',
  130. 'raisehand',
  131. 'settings',
  132. 'tileview',
  133. 'fullscreen',
  134. 'stats',
  135. 'videoquality'
  136. ];