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.

interface_config.js 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. /* eslint-disable no-unused-vars, no-var, max-len */
  2. // console.trace("interfaceConfig")
  3. var interfaceConfig = {
  4. // TO FIX: this needs to be handled from SASS variables. There are some
  5. // methods allowing to use variables both in css and js.
  6. DEFAULT_BACKGROUND: '#474747',
  7. /**
  8. * Whether or not the blurred video background for large video should be
  9. * displayed on browsers that can support it.
  10. */
  11. DISABLE_VIDEO_BACKGROUND: false,
  12. INITIAL_TOOLBAR_TIMEOUT: 20000,
  13. TOOLBAR_TIMEOUT: 4000,
  14. TOOLBAR_ALWAYS_VISIBLE: false,
  15. // TOOLBAR_ALWAYS_VISIBLE: true,
  16. DEFAULT_REMOTE_DISPLAY_NAME: 'Fellow Jitster',
  17. DEFAULT_LOCAL_DISPLAY_NAME: 'me',
  18. // SHOW_JITSI_WATERMARK: true,
  19. SHOW_JITSI_WATERMARK: false,
  20. JITSI_WATERMARK_LINK: 'https://jitsi.org',
  21. // if watermark is disabled by default, it can be shown only for guests
  22. // SHOW_WATERMARK_FOR_GUESTS: true,
  23. SHOW_WATERMARK_FOR_GUESTS: false,
  24. SHOW_BRAND_WATERMARK: false,
  25. BRAND_WATERMARK_LINK: '',
  26. SHOW_POWERED_BY: false,
  27. SHOW_DEEP_LINKING_IMAGE: false,
  28. GENERATE_ROOMNAMES_ON_WELCOME_PAGE: true,
  29. DISPLAY_WELCOME_PAGE_CONTENT: true,
  30. DISPLAY_WELCOME_PAGE_TOOLBAR_ADDITIONAL_CONTENT: false,
  31. APP_NAME: 'Jitsi Meet',
  32. NATIVE_APP_NAME: 'Jitsi Meet',
  33. PROVIDER_NAME: 'Jitsi',
  34. LANG_DETECTION: true, // Allow i18n to detect the system language
  35. INVITATION_POWERED_BY: true,
  36. /**
  37. * If we should show authentication block in profile
  38. */
  39. AUTHENTICATION_ENABLE: true,
  40. /**
  41. * The name of the toolbar buttons to display in the toolbar. If present,
  42. * the button will display. Exceptions are "livestreaming" and "recording"
  43. * which also require being a moderator and some values in config.js to be
  44. * enabled. Also, the "profile" button will not display for user's with a
  45. * jwt.
  46. */
  47. TOOLBAR_BUTTONS: [
  48. 'microphone', 'camera', 'closedcaptions', 'desktop', 'fullscreen',
  49. 'fodeviceselection', 'hangup', 'profile', 'info', 'chat', 'recording',
  50. 'livestreaming', 'etherpad', 'sharedvideo', 'settings', 'raisehand',
  51. 'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts',
  52. 'tileview', 'videobackgroundblur', 'download', 'help', 'mute-everyone',
  53. 'e2ee'
  54. ],
  55. SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile', 'calendar' ],
  56. // Determines how the video would fit the screen. 'both' would fit the whole
  57. // screen, 'height' would fit the original video height to the height of the
  58. // screen, 'width' would fit the original video width to the width of the
  59. // screen respecting ratio.
  60. VIDEO_LAYOUT_FIT: 'both',
  61. /**
  62. * Whether to only show the filmstrip (and hide the toolbar).
  63. */
  64. filmStripOnly: false,
  65. /**
  66. * Whether to show thumbnails in filmstrip as a column instead of as a row.
  67. */
  68. VERTICAL_FILMSTRIP: true,
  69. // VERTICAL_FILMSTRIP: false,
  70. // A html text to be shown to guests on the close page, false disables it
  71. CLOSE_PAGE_GUEST_HINT: false,
  72. SHOW_PROMOTIONAL_CLOSE_PAGE: false,
  73. RANDOM_AVATAR_URL_PREFIX: false,
  74. RANDOM_AVATAR_URL_SUFFIX: false,
  75. FILM_STRIP_MAX_HEIGHT: 120,
  76. // Enables feedback star animation.
  77. ENABLE_FEEDBACK_ANIMATION: false,
  78. DISABLE_FOCUS_INDICATOR: false,
  79. DISABLE_DOMINANT_SPEAKER_INDICATOR: false,
  80. /**
  81. * Whether the speech to text transcription subtitles panel is disabled.
  82. * If {@code undefined}, defaults to {@code false}.
  83. *
  84. * @type {boolean}
  85. */
  86. DISABLE_TRANSCRIPTION_SUBTITLES: false,
  87. /**
  88. * Whether the ringing sound in the call/ring overlay is disabled. If
  89. * {@code undefined}, defaults to {@code false}.
  90. *
  91. * @type {boolean}
  92. */
  93. DISABLE_RINGING: false,
  94. AUDIO_LEVEL_PRIMARY_COLOR: 'rgba(255,255,255,0.4)',
  95. AUDIO_LEVEL_SECONDARY_COLOR: 'rgba(255,255,255,0.2)',
  96. POLICY_LOGO: null,
  97. LOCAL_THUMBNAIL_RATIO: 16 / 9, // 16:9
  98. REMOTE_THUMBNAIL_RATIO: 1, // 1:1
  99. // Documentation reference for the live streaming feature.
  100. LIVE_STREAMING_HELP_LINK: 'https://jitsi.org/live',
  101. /**
  102. * Whether the mobile app Jitsi Meet is to be promoted to participants
  103. * attempting to join a conference in a mobile Web browser. If
  104. * {@code undefined}, defaults to {@code true}.
  105. *
  106. * @type {boolean}
  107. */
  108. MOBILE_APP_PROMO: true,
  109. /**
  110. * Maximum coeficient of the ratio of the large video to the visible area
  111. * after the large video is scaled to fit the window.
  112. *
  113. * @type {number}
  114. */
  115. MAXIMUM_ZOOMING_COEFFICIENT: 1.3,
  116. /*
  117. * If indicated some of the error dialogs may point to the support URL for
  118. * help.
  119. */
  120. SUPPORT_URL: 'https://community.jitsi.org/',
  121. /**
  122. * Whether the connection indicator icon should hide itself based on
  123. * connection strength. If true, the connection indicator will remain
  124. * displayed while the participant has a weak connection and will hide
  125. * itself after the CONNECTION_INDICATOR_HIDE_TIMEOUT when the connection is
  126. * strong.
  127. *
  128. * @type {boolean}
  129. */
  130. CONNECTION_INDICATOR_AUTO_HIDE_ENABLED: true,
  131. /**
  132. * How long the connection indicator should remain displayed before hiding.
  133. * Used in conjunction with CONNECTION_INDICATOR_AUTOHIDE_ENABLED.
  134. *
  135. * @type {number}
  136. */
  137. CONNECTION_INDICATOR_AUTO_HIDE_TIMEOUT: 5000,
  138. /**
  139. * If true, hides the connection indicators completely.
  140. *
  141. * @type {boolean}
  142. */
  143. CONNECTION_INDICATOR_DISABLED: false,
  144. /**
  145. * If true, hides the video quality label indicating the resolution status
  146. * of the current large video.
  147. *
  148. * @type {boolean}
  149. */
  150. VIDEO_QUALITY_LABEL_DISABLED: false,
  151. /**
  152. * If true, will display recent list
  153. *
  154. * @type {boolean}
  155. */
  156. RECENT_LIST_ENABLED: true,
  157. // Names of browsers which should show a warning stating the current browser
  158. // has a suboptimal experience. Browsers which are not listed as optimal or
  159. // unsupported are considered suboptimal. Valid values are:
  160. // chrome, chromium, edge, electron, firefox, nwjs, opera, safari
  161. OPTIMAL_BROWSERS: [ 'chrome', 'chromium', 'firefox', 'nwjs', 'electron' ],
  162. // Browsers, in addition to those which do not fully support WebRTC, that
  163. // are not supported and should show the unsupported browser page.
  164. UNSUPPORTED_BROWSERS: [],
  165. /**
  166. * A UX mode where the last screen share participant is automatically
  167. * pinned. Valid values are the string "remote-only" so remote participants
  168. * get pinned but not local, otherwise any truthy value for all participants,
  169. * and any falsy value to disable the feature.
  170. *
  171. * Note: this mode is experimental and subject to breakage.
  172. */
  173. AUTO_PIN_LATEST_SCREEN_SHARE: 'remote-only',
  174. /**
  175. * If true, presence status: busy, calling, connected etc. is not displayed.
  176. */
  177. DISABLE_PRESENCE_STATUS: false,
  178. /**
  179. * If true, notifications regarding joining/leaving are no longer displayed.
  180. */
  181. DISABLE_JOIN_LEAVE_NOTIFICATIONS: false,
  182. /**
  183. * Decides whether the chrome extension banner should be rendered on the landing page and during the meeting.
  184. * If this is set to false, the banner will not be rendered at all. If set to true, the check for extension(s)
  185. * being already installed is done before rendering.
  186. */
  187. SHOW_CHROME_EXTENSION_BANNER: false,
  188. /**
  189. * When enabled, the kick participant button will not be presented for users without a JWT
  190. */
  191. // HIDE_KICK_BUTTON_FOR_GUESTS: false
  192. /**
  193. * How many columns the tile view can expand to. The respected range is
  194. * between 1 and 5.
  195. */
  196. TILE_VIEW_MAX_COLUMNS: 5,
  197. /**
  198. * Specify custom URL for downloading android mobile app.
  199. */
  200. // MOBILE_DOWNLOAD_LINK_ANDROID: 'https://play.google.com/store/apps/details?id=org.jitsi.meet',
  201. /**
  202. * Specify URL for downloading ios mobile app.
  203. */
  204. // MOBILE_DOWNLOAD_LINK_IOS: 'https://itunes.apple.com/us/app/jitsi-meet/id1165103905',
  205. /**
  206. * Specify mobile app scheme for opening the app from the mobile browser.
  207. */
  208. // APP_SCHEME: 'org.jitsi.meet',
  209. /**
  210. * Specify the Android app package name.
  211. */
  212. // ANDROID_APP_PACKAGE: 'org.jitsi.meet',
  213. /**
  214. * Override the behavior of some notifications to remain displayed until
  215. * explicitly dismissed through a user action. The value is how long, in
  216. * milliseconds, those notifications should remain displayed.
  217. */
  218. // ENFORCE_NOTIFICATION_AUTO_DISMISS_TIMEOUT: 15000,
  219. // List of undocumented settings
  220. /**
  221. INDICATOR_FONT_SIZES
  222. MOBILE_DYNAMIC_LINK
  223. PHONE_NUMBER_REGEX
  224. */
  225. };
  226. /* eslint-enable no-unused-vars, no-var, max-len */