Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

constants.ts 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. import { NativeToolbarButton, 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. * Thresholds for displaying native toolbox buttons.
  37. */
  38. export const NATIVE_THRESHOLDS = [
  39. {
  40. width: 560,
  41. order: [ 'microphone', 'camera', 'chat', 'screensharing', 'raisehand', 'tileview', 'overflowmenu', 'hangup' ]
  42. },
  43. {
  44. width: 500,
  45. order: [ 'microphone', 'camera', 'chat', 'raisehand', 'tileview', 'overflowmenu', 'hangup' ]
  46. },
  47. {
  48. width: 440,
  49. order: [ 'microphone', 'camera', 'chat', 'raisehand', 'overflowmenu', 'hangup' ]
  50. },
  51. {
  52. width: 380,
  53. order: [ 'microphone', 'camera', 'chat', 'overflowmenu', 'hangup' ]
  54. },
  55. {
  56. width: 320,
  57. order: [ 'microphone', 'camera', 'overflowmenu', 'hangup' ]
  58. }
  59. ];
  60. /**
  61. * Main toolbar buttons priority used to determine which button should be picked to fill empty spaces for disabled
  62. * buttons.
  63. */
  64. export const MAIN_TOOLBAR_BUTTONS_PRIORITY = [
  65. 'microphone',
  66. 'camera',
  67. 'desktop',
  68. 'chat',
  69. 'raisehand',
  70. 'reactions',
  71. 'participants-pane',
  72. 'tileview',
  73. 'overflowmenu',
  74. 'hangup',
  75. 'invite',
  76. 'toggle-camera',
  77. 'videoquality',
  78. 'fullscreen',
  79. 'security',
  80. 'closedcaptions',
  81. 'recording',
  82. 'livestreaming',
  83. 'linktosalesforce',
  84. 'sharedvideo',
  85. 'shareaudio',
  86. 'noisesuppression',
  87. 'whiteboard',
  88. 'etherpad',
  89. 'select-background',
  90. 'stats',
  91. 'settings',
  92. 'shortcuts',
  93. 'profile',
  94. 'embedmeeting',
  95. 'feedback',
  96. 'download',
  97. 'help'
  98. ];
  99. export const TOOLBAR_TIMEOUT = 4000;
  100. export const DRAWER_MAX_HEIGHT = '80dvh - 64px';
  101. // Around 300 to be displayed above components like chat
  102. export const ZINDEX_DIALOG_PORTAL = 302;
  103. /**
  104. * Color for spinner displayed in the toolbar.
  105. */
  106. export const SPINNER_COLOR = '#929292';
  107. /**
  108. * The list of all possible UI buttons.
  109. *
  110. * @protected
  111. * @type Array<string>
  112. */
  113. export const TOOLBAR_BUTTONS: ToolbarButton[] = [
  114. 'camera',
  115. 'chat',
  116. 'closedcaptions',
  117. 'desktop',
  118. 'download',
  119. 'embedmeeting',
  120. 'etherpad',
  121. 'feedback',
  122. 'filmstrip',
  123. 'fullscreen',
  124. 'hangup',
  125. 'help',
  126. 'highlight',
  127. 'invite',
  128. 'linktosalesforce',
  129. 'livestreaming',
  130. 'microphone',
  131. 'mute-everyone',
  132. 'mute-video-everyone',
  133. 'participants-pane',
  134. 'profile',
  135. 'raisehand',
  136. 'recording',
  137. 'security',
  138. 'select-background',
  139. 'settings',
  140. 'shareaudio',
  141. 'noisesuppression',
  142. 'sharedvideo',
  143. 'shortcuts',
  144. 'stats',
  145. 'tileview',
  146. 'toggle-camera',
  147. 'videoquality',
  148. 'whiteboard'
  149. ];
  150. /**
  151. * The list of all possible native buttons.
  152. *
  153. * @protected
  154. * @type Array<string>
  155. */
  156. export const NATIVE_TOOLBAR_BUTTONS: NativeToolbarButton[] = [
  157. 'camera',
  158. 'chat',
  159. 'hangup',
  160. 'microphone',
  161. 'overflowmenu',
  162. 'raisehand',
  163. 'screensharing',
  164. 'tileview'
  165. ];
  166. /**
  167. * The toolbar buttons to show when in visitors mode.
  168. */
  169. export const VISITORS_MODE_BUTTONS: ToolbarButton[] = [
  170. 'chat',
  171. 'closedcaptions',
  172. 'fullscreen',
  173. 'hangup',
  174. 'raisehand',
  175. 'settings',
  176. 'stats',
  177. 'tileview',
  178. 'videoquality'
  179. ];