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

config.js 17KB

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