您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

config.js 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. /* eslint-disable no-unused-vars, no-var */
  2. var config = {
  3. // Configuration
  4. //
  5. // Alternative location for the configuration.
  6. // configLocation: './config.json',
  7. // Custom function which given the URL path should return a room name.
  8. // getroomnode: function (path) { return 'someprefixpossiblybasedonpath'; },
  9. // Connection
  10. //
  11. hosts: {
  12. // XMPP domain.
  13. domain: 'jitsi-meet.example.com',
  14. // When using authentication, domain for guest users.
  15. // anonymousdomain: 'guest.example.com',
  16. // Domain for authenticated users. Defaults to <domain>.
  17. // authdomain: 'jitsi-meet.example.com',
  18. // Jirecon recording component domain.
  19. // jirecon: 'jirecon.jitsi-meet.example.com',
  20. // Call control component (Jigasi).
  21. // call_control: 'callcontrol.jitsi-meet.example.com',
  22. // Focus component domain. Defaults to focus.<domain>.
  23. // focus: 'focus.jitsi-meet.example.com',
  24. // XMPP MUC domain. FIXME: use XEP-0030 to discover it.
  25. muc: 'conference.jitsi-meet.example.com'
  26. },
  27. // BOSH URL. FIXME: use XEP-0156 to discover it.
  28. bosh: '//jitsi-meet.example.com/http-bind',
  29. // The name of client node advertised in XEP-0115 'c' stanza
  30. clientNode: 'http://jitsi.org/jitsimeet',
  31. // The real JID of focus participant - can be overridden here
  32. // focusUserJid: 'focus@auth.jitsi-meet.example.com',
  33. // Testing / experimental features.
  34. //
  35. testing: {
  36. // Enables experimental simulcast support on Firefox.
  37. enableFirefoxSimulcast: false,
  38. // P2P test mode disables automatic switching to P2P when there are 2
  39. // participants in the conference.
  40. p2pTestMode: false
  41. // Enables the test specific features consumed by jitsi-meet-torture
  42. // testMode: false
  43. // Disables the auto-play behavior of *all* newly created video element.
  44. // This is useful when the client runs on a host with limited resources.
  45. // noAutoPlayVideo: false
  46. },
  47. // Disables ICE/UDP by filtering out local and remote UDP candidates in
  48. // signalling.
  49. // webrtcIceUdpDisable: false,
  50. // Disables ICE/TCP by filtering out local and remote TCP candidates in
  51. // signalling.
  52. // webrtcIceTcpDisable: false,
  53. // Media
  54. //
  55. // Audio
  56. // Disable measuring of audio levels.
  57. // disableAudioLevels: false,
  58. // Start the conference in audio only mode (no video is being received nor
  59. // sent).
  60. // startAudioOnly: false,
  61. // Every participant after the Nth will start audio muted.
  62. // startAudioMuted: 10,
  63. // Start calls with audio muted. Unlike the option above, this one is only
  64. // applied locally. FIXME: having these 2 options is confusing.
  65. // startWithAudioMuted: false,
  66. // Enabling it (with #params) will disable local audio output of remote
  67. // participants and to enable it back a reload is needed.
  68. // startSilent: false
  69. // Video
  70. // Sets the preferred resolution (height) for local video. Defaults to 720.
  71. // resolution: 720,
  72. // w3c spec-compliant video constraints to use for video capture. Currently
  73. // used by browsers that return true from lib-jitsi-meet's
  74. // util#browser#usesNewGumFlow. The constraints are independency from
  75. // this config's resolution value. Defaults to requesting an ideal aspect
  76. // ratio of 16:9 with an ideal resolution of 720.
  77. // constraints: {
  78. // video: {
  79. // aspectRatio: 16 / 9,
  80. // height: {
  81. // ideal: 720,
  82. // max: 720,
  83. // min: 240
  84. // }
  85. // }
  86. // },
  87. // Enable / disable simulcast support.
  88. // disableSimulcast: false,
  89. // Enable / disable layer suspension. If enabled, endpoints whose HD
  90. // layers are not in use will be suspended (no longer sent) until they
  91. // are requested again.
  92. // enableLayerSuspension: false,
  93. // Every participant after the Nth will start video muted.
  94. // startVideoMuted: 10,
  95. // Start calls with video muted. Unlike the option above, this one is only
  96. // applied locally. FIXME: having these 2 options is confusing.
  97. // startWithVideoMuted: false,
  98. // If set to true, prefer to use the H.264 video codec (if supported).
  99. // Note that it's not recommended to do this because simulcast is not
  100. // supported when using H.264. For 1-to-1 calls this setting is enabled by
  101. // default and can be toggled in the p2p section.
  102. // preferH264: true,
  103. // If set to true, disable H.264 video codec by stripping it out of the
  104. // SDP.
  105. // disableH264: false,
  106. // Desktop sharing
  107. // The ID of the jidesha extension for Chrome.
  108. desktopSharingChromeExtId: null,
  109. // Whether desktop sharing should be disabled on Chrome.
  110. // desktopSharingChromeDisabled: false,
  111. // The media sources to use when using screen sharing with the Chrome
  112. // extension.
  113. desktopSharingChromeSources: [ 'screen', 'window', 'tab' ],
  114. // Required version of Chrome extension
  115. desktopSharingChromeMinExtVersion: '0.1',
  116. // Whether desktop sharing should be disabled on Firefox.
  117. // desktopSharingFirefoxDisabled: false,
  118. // Optional desktop sharing frame rate options. Default value: min:5, max:5.
  119. // desktopSharingFrameRate: {
  120. // min: 5,
  121. // max: 5
  122. // },
  123. // Try to start calls with screen-sharing instead of camera video.
  124. // startScreenSharing: false,
  125. // Recording
  126. // Whether to enable file recording or not.
  127. // fileRecordingsEnabled: false,
  128. // Enable the dropbox integration.
  129. // dropbox: {
  130. // appKey: '<APP_KEY>' // Specify your app key here.
  131. // // A URL to redirect the user to, after authenticating
  132. // // by default uses:
  133. // // 'https://jitsi-meet.example.com/static/oauth.html'
  134. // redirectURI:
  135. // 'https://jitsi-meet.example.com/subfolder/static/oauth.html'
  136. // },
  137. // When integrations like dropbox are enabled only that will be shown,
  138. // by enabling fileRecordingsServiceEnabled, we show both the integrations
  139. // and the generic recording service (its configuration and storage type
  140. // depends on jibri configuration)
  141. // fileRecordingsServiceEnabled: false,
  142. // Whether to show the possibility to share file recording with other people
  143. // (e.g. meeting participants), based on the actual implementation
  144. // on the backend.
  145. // fileRecordingsServiceSharingEnabled: false,
  146. // Whether to enable live streaming or not.
  147. // liveStreamingEnabled: false,
  148. // Transcription (in interface_config,
  149. // subtitles and buttons can be configured)
  150. // transcribingEnabled: false,
  151. // Enables automatic turning on captions when recording is started
  152. // autoCaptionOnRecord: false,
  153. // Misc
  154. // Default value for the channel "last N" attribute. -1 for unlimited.
  155. channelLastN: -1,
  156. // Disables or enables RTX (RFC 4588) (defaults to false).
  157. // disableRtx: false,
  158. // Disables or enables TCC (the default is in Jicofo and set to true)
  159. // (draft-holmer-rmcat-transport-wide-cc-extensions-01). This setting
  160. // affects congestion control, it practically enables send-side bandwidth
  161. // estimations.
  162. // enableTcc: true,
  163. // Disables or enables REMB (the default is in Jicofo and set to false)
  164. // (draft-alvestrand-rmcat-remb-03). This setting affects congestion
  165. // control, it practically enables recv-side bandwidth estimations. When
  166. // both TCC and REMB are enabled, TCC takes precedence. When both are
  167. // disabled, then bandwidth estimations are disabled.
  168. // enableRemb: false,
  169. // Defines the minimum number of participants to start a call (the default
  170. // is set in Jicofo and set to 2).
  171. // minParticipants: 2,
  172. // Use XEP-0215 to fetch STUN and TURN servers.
  173. // useStunTurn: true,
  174. // Enable IPv6 support.
  175. // useIPv6: true,
  176. // Enables / disables a data communication channel with the Videobridge.
  177. // Values can be 'datachannel', 'websocket', true (treat it as
  178. // 'datachannel'), undefined (treat it as 'datachannel') and false (don't
  179. // open any channel).
  180. // openBridgeChannel: true,
  181. // UI
  182. //
  183. // Use display name as XMPP nickname.
  184. // useNicks: false,
  185. // Require users to always specify a display name.
  186. // requireDisplayName: true,
  187. // Whether to use a welcome page or not. In case it's false a random room
  188. // will be joined when no room is specified.
  189. enableWelcomePage: true,
  190. // Enabling the close page will ignore the welcome page redirection when
  191. // a call is hangup.
  192. // enableClosePage: false,
  193. // Disable hiding of remote thumbnails when in a 1-on-1 conference call.
  194. // disable1On1Mode: false,
  195. // Default language for the user interface.
  196. // defaultLanguage: 'en',
  197. // If true all users without a token will be considered guests and all users
  198. // with token will be considered non-guests. Only guests will be allowed to
  199. // edit their profile.
  200. enableUserRolesBasedOnToken: false,
  201. // Whether or not some features are checked based on token.
  202. // enableFeaturesBasedOnToken: false,
  203. // Enable lock room for all moderators, even when userRolesBasedOnToken is enabled and participants are guests.
  204. // lockRoomGuestEnabled: false,
  205. // When enabled the password used for locking a room is restricted to up to the number of digits specified
  206. // roomPasswordNumberOfDigits: 10,
  207. // default: roomPasswordNumberOfDigits: false,
  208. // Message to show the users. Example: 'The service will be down for
  209. // maintenance at 01:00 AM GMT,
  210. // noticeMessage: '',
  211. // Enables calendar integration, depends on googleApiApplicationClientID
  212. // and microsoftApiApplicationClientID
  213. // enableCalendarIntegration: false,
  214. // Stats
  215. //
  216. // Whether to enable stats collection or not in the TraceablePeerConnection.
  217. // This can be useful for debugging purposes (post-processing/analysis of
  218. // the webrtc stats) as it is done in the jitsi-meet-torture bandwidth
  219. // estimation tests.
  220. // gatherStats: false,
  221. // To enable sending statistics to callstats.io you must provide the
  222. // Application ID and Secret.
  223. // callStatsID: '',
  224. // callStatsSecret: '',
  225. // enables callstatsUsername to be reported as statsId and used
  226. // by callstats as repoted remote id
  227. // enableStatsID: false
  228. // enables sending participants display name to callstats
  229. // enableDisplayNameInStats: false
  230. // Privacy
  231. //
  232. // If third party requests are disabled, no other server will be contacted.
  233. // This means avatars will be locally generated and callstats integration
  234. // will not function.
  235. // disableThirdPartyRequests: false,
  236. // Peer-To-Peer mode: used (if enabled) when there are just 2 participants.
  237. //
  238. p2p: {
  239. // Enables peer to peer mode. When enabled the system will try to
  240. // establish a direct connection when there are exactly 2 participants
  241. // in the room. If that succeeds the conference will stop sending data
  242. // through the JVB and use the peer to peer connection instead. When a
  243. // 3rd participant joins the conference will be moved back to the JVB
  244. // connection.
  245. enabled: true,
  246. // Use XEP-0215 to fetch STUN and TURN servers.
  247. // useStunTurn: true,
  248. // The STUN servers that will be used in the peer to peer connections
  249. stunServers: [
  250. { urls: 'stun:stun.l.google.com:19302' },
  251. { urls: 'stun:stun1.l.google.com:19302' },
  252. { urls: 'stun:stun2.l.google.com:19302' }
  253. ],
  254. // Sets the ICE transport policy for the p2p connection. At the time
  255. // of this writing the list of possible values are 'all' and 'relay',
  256. // but that is subject to change in the future. The enum is defined in
  257. // the WebRTC standard:
  258. // https://www.w3.org/TR/webrtc/#rtcicetransportpolicy-enum.
  259. // If not set, the effective value is 'all'.
  260. // iceTransportPolicy: 'all',
  261. // If set to true, it will prefer to use H.264 for P2P calls (if H.264
  262. // is supported).
  263. preferH264: true
  264. // If set to true, disable H.264 video codec by stripping it out of the
  265. // SDP.
  266. // disableH264: false,
  267. // How long we're going to wait, before going back to P2P after the 3rd
  268. // participant has left the conference (to filter out page reload).
  269. // backToP2PDelay: 5
  270. },
  271. analytics: {
  272. // The Google Analytics Tracking ID:
  273. // googleAnalyticsTrackingId: 'your-tracking-id-UA-123456-1'
  274. // The Amplitude APP Key:
  275. // amplitudeAPPKey: '<APP_KEY>'
  276. // Array of script URLs to load as lib-jitsi-meet "analytics handlers".
  277. // scriptURLs: [
  278. // "libs/analytics-ga.min.js", // google-analytics
  279. // "https://example.com/my-custom-analytics.js"
  280. // ],
  281. },
  282. // Information about the jitsi-meet instance we are connecting to, including
  283. // the user region as seen by the server.
  284. deploymentInfo: {
  285. // shard: "shard1",
  286. // region: "europe",
  287. // userRegion: "asia"
  288. }
  289. // Local Recording
  290. //
  291. // localRecording: {
  292. // Enables local recording.
  293. // Additionally, 'localrecording' (all lowercase) needs to be added to
  294. // TOOLBAR_BUTTONS in interface_config.js for the Local Recording
  295. // button to show up on the toolbar.
  296. //
  297. // enabled: true,
  298. //
  299. // The recording format, can be one of 'ogg', 'flac' or 'wav'.
  300. // format: 'flac'
  301. //
  302. // }
  303. // Options related to end-to-end (participant to participant) ping.
  304. // e2eping: {
  305. // // The interval in milliseconds at which pings will be sent.
  306. // // Defaults to 10000, set to <= 0 to disable.
  307. // pingInterval: 10000,
  308. //
  309. // // The interval in milliseconds at which analytics events
  310. // // with the measured RTT will be sent. Defaults to 60000, set
  311. // // to <= 0 to disable.
  312. // analyticsInterval: 60000,
  313. // }
  314. // If set, will attempt to use the provided video input device label when
  315. // triggering a screenshare, instead of proceeding through the normal flow
  316. // for obtaining a desktop stream.
  317. // NOTE: This option is experimental and is currently intended for internal
  318. // use only.
  319. // _desktopSharingSourceDevice: 'sample-id-or-label'
  320. // If true, any checks to handoff to another application will be prevented
  321. // and instead the app will continue to display in the current browser.
  322. // disableDeepLinking: false
  323. // A property to disable the right click context menu for localVideo
  324. // the menu has option to flip the locally seen video for local presentations
  325. // disableLocalVideoFlip: false
  326. // List of undocumented settings used in jitsi-meet
  327. /**
  328. _immediateReloadThreshold
  329. autoRecord
  330. autoRecordToken
  331. debug
  332. debugAudioLevels
  333. deploymentInfo
  334. dialInConfCodeUrl
  335. dialInNumbersUrl
  336. dialOutAuthUrl
  337. dialOutCodesUrl
  338. disableRemoteControl
  339. displayJids
  340. etherpad_base
  341. externalConnectUrl
  342. firefox_fake_device
  343. googleApiApplicationClientID
  344. iAmRecorder
  345. iAmSipGateway
  346. microsoftApiApplicationClientID
  347. peopleSearchQueryTypes
  348. peopleSearchUrl
  349. requireDisplayName
  350. tokenAuthUrl
  351. */
  352. // List of undocumented settings used in lib-jitsi-meet
  353. /**
  354. _peerConnStatusOutOfLastNTimeout
  355. _peerConnStatusRtcMuteTimeout
  356. abTesting
  357. avgRtpStatsN
  358. callStatsConfIDNamespace
  359. callStatsCustomScriptUrl
  360. desktopSharingSources
  361. disableAEC
  362. disableAGC
  363. disableAP
  364. disableHPF
  365. disableNS
  366. enableLipSync
  367. enableTalkWhileMuted
  368. forceJVB121Ratio
  369. hiddenDomain
  370. ignoreStartMuted
  371. nick
  372. startBitrate
  373. */
  374. };
  375. /* eslint-enable no-unused-vars, no-var */