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

config.js 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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. // XMPP MUC domain. FIXME: use XEP-0030 to discover it.
  15. muc: 'conference.jitsi-meet.example.com'
  16. // When using authentication, domain for guest users.
  17. // anonymousdomain: 'guest.example.com',
  18. // Domain for authenticated users. Defaults to <domain>.
  19. // authdomain: 'jitsi-meet.example.com',
  20. // Jirecon recording component domain.
  21. // jirecon: 'jirecon.jitsi-meet.example.com',
  22. // Call control component (Jigasi).
  23. // call_control: 'callcontrol.jitsi-meet.example.com',
  24. // Focus component domain. Defaults to focus.<domain>.
  25. // focus: 'focus.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. },
  42. // Disables ICE/UDP by filtering out local and remote UDP candidates in
  43. // signalling.
  44. // webrtcIceUdpDisable: false,
  45. // Disables ICE/TCP by filtering out local and remote TCP candidates in
  46. // signalling.
  47. // webrtcIceTcpDisable: false,
  48. // Media
  49. //
  50. // Audio
  51. // Disable measuring of audio levels.
  52. // disableAudioLevels: false,
  53. // Start the conference in audio only mode (no video is being received nor
  54. // sent).
  55. // startAudioOnly: false,
  56. // Every participant after the Nth will start audio muted.
  57. // startAudioMuted: 10,
  58. // Start calls with audio muted. Unlike the option above, this one is only
  59. // applied locally. FIXME: having these 2 options is confusing.
  60. // startWithAudioMuted: false,
  61. // Video
  62. // Sets the preferred resolution (height) for local video. Defaults to 720.
  63. // resolution: 720,
  64. // w3c spec-compliant video constraints to use for video capture. Currently
  65. // used by browsers that return true from lib-jitsi-meet's
  66. // util#browser#usesNewGumFlow. The constraints are independency from
  67. // this config's resolution value. Defaults to requesting an ideal aspect
  68. // ratio of 16:9 with an ideal resolution of 1080p.
  69. // constraints: {
  70. // video: {
  71. // aspectRatio: 16 / 9,
  72. // height: {
  73. // ideal: 1080,
  74. // max: 1080,
  75. // min: 240
  76. // }
  77. // }
  78. // },
  79. // Enable / disable simulcast support.
  80. // disableSimulcast: false,
  81. // Suspend sending video if bandwidth estimation is too low. This may cause
  82. // problems with audio playback. Disabled until these are fixed.
  83. disableSuspendVideo: true,
  84. // Every participant after the Nth will start video muted.
  85. // startVideoMuted: 10,
  86. // Start calls with video muted. Unlike the option above, this one is only
  87. // applied locally. FIXME: having these 2 options is confusing.
  88. // startWithVideoMuted: false,
  89. // If set to true, prefer to use the H.264 video codec (if supported).
  90. // Note that it's not recommended to do this because simulcast is not
  91. // supported when using H.264. For 1-to-1 calls this setting is enabled by
  92. // default and can be toggled in the p2p section.
  93. // preferH264: true,
  94. // If set to true, disable H.264 video codec by stripping it out of the
  95. // SDP.
  96. // disableH264: false,
  97. // Desktop sharing
  98. // Enable / disable desktop sharing
  99. // disableDesktopSharing: false,
  100. // The ID of the jidesha extension for Chrome.
  101. desktopSharingChromeExtId: null,
  102. // Whether desktop sharing should be disabled on Chrome.
  103. desktopSharingChromeDisabled: true,
  104. // The media sources to use when using screen sharing with the Chrome
  105. // extension.
  106. desktopSharingChromeSources: [ 'screen', 'window', 'tab' ],
  107. // Required version of Chrome extension
  108. desktopSharingChromeMinExtVersion: '0.1',
  109. // Whether desktop sharing should be disabled on Firefox.
  110. desktopSharingFirefoxDisabled: false,
  111. // Optional desktop sharing frame rate options. Default value: min:5, max:5.
  112. // desktopSharingFrameRate: {
  113. // min: 5,
  114. // max: 5
  115. // },
  116. // Try to start calls with screen-sharing instead of camera video.
  117. // startScreenSharing: false,
  118. // Recording
  119. // Whether to enable recording or not.
  120. // enableRecording: false,
  121. // Type for recording: one of jibri or jirecon.
  122. // recordingType: 'jibri',
  123. // Misc
  124. // Default value for the channel "last N" attribute. -1 for unlimited.
  125. channelLastN: -1,
  126. // Disables or enables RTX (RFC 4588) (defaults to false).
  127. // disableRtx: false,
  128. // Use XEP-0215 to fetch STUN and TURN servers.
  129. // useStunTurn: true,
  130. // Enable IPv6 support.
  131. // useIPv6: true,
  132. // Enables / disables a data communication channel with the Videobridge.
  133. // Values can be 'datachannel', 'websocket', true (treat it as
  134. // 'datachannel'), undefined (treat it as 'datachannel') and false (don't
  135. // open any channel).
  136. // openBridgeChannel: true,
  137. // UI
  138. //
  139. // Use display name as XMPP nickname.
  140. // useNicks: false,
  141. // Require users to always specify a display name.
  142. // requireDisplayName: true,
  143. // Whether to use a welcome page or not. In case it's false a random room
  144. // will be joined when no room is specified.
  145. enableWelcomePage: true,
  146. // Enabling the close page will ignore the welcome page redirection when
  147. // a call is hangup.
  148. // enableClosePage: false,
  149. // Disable hiding of remote thumbnails when in a 1-on-1 conference call.
  150. // disable1On1Mode: false,
  151. // The minimum value a video's height (or width, whichever is smaller) needs
  152. // to be in order to be considered high-definition.
  153. minHDHeight: 540,
  154. // Default language for the user interface.
  155. // defaultLanguage: 'en',
  156. // If true all users without a token will be considered guests and all users
  157. // with token will be considered non-guests. Only guests will be allowed to
  158. // edit their profile.
  159. enableUserRolesBasedOnToken: false,
  160. // Message to show the users. Example: 'The service will be down for
  161. // maintenance at 01:00 AM GMT,
  162. // noticeMessage: '',
  163. // Stats
  164. //
  165. // Whether to enable stats collection or not in the TraceablePeerConnection.
  166. // This can be useful for debugging purposes (post-processing/analysis of
  167. // the webrtc stats) as it is done in the jitsi-meet-torture bandwidth
  168. // estimation tests.
  169. // gatherStats: false,
  170. // To enable sending statistics to callstats.io you must provide the
  171. // Application ID and Secret.
  172. // callStatsID: '',
  173. // callStatsSecret: '',
  174. // enables callstatsUsername to be reported as statsId and used
  175. // by callstats as repoted remote id
  176. // enableStatsID: false
  177. // enables sending participants display name to callstats
  178. // enableDisplayNameInStats: false
  179. // Privacy
  180. //
  181. // If third party requests are disabled, no other server will be contacted.
  182. // This means avatars will be locally generated and callstats integration
  183. // will not function.
  184. // disableThirdPartyRequests: false,
  185. // Peer-To-Peer mode: used (if enabled) when there are just 2 participants.
  186. //
  187. p2p: {
  188. // Enables peer to peer mode. When enabled the system will try to
  189. // establish a direct connection when there are exactly 2 participants
  190. // in the room. If that succeeds the conference will stop sending data
  191. // through the JVB and use the peer to peer connection instead. When a
  192. // 3rd participant joins the conference will be moved back to the JVB
  193. // connection.
  194. enabled: true,
  195. // Use XEP-0215 to fetch STUN and TURN servers.
  196. // useStunTurn: true,
  197. // The STUN servers that will be used in the peer to peer connections
  198. stunServers: [
  199. { urls: 'stun:stun.l.google.com:19302' },
  200. { urls: 'stun:stun1.l.google.com:19302' },
  201. { urls: 'stun:stun2.l.google.com:19302' }
  202. ],
  203. // Sets the ICE transport policy for the p2p connection. At the time
  204. // of this writing the list of possible values are 'all' and 'relay',
  205. // but that is subject to change in the future. The enum is defined in
  206. // the WebRTC standard:
  207. // https://www.w3.org/TR/webrtc/#rtcicetransportpolicy-enum.
  208. // If not set, the effective value is 'all'.
  209. // iceTransportPolicy: 'all',
  210. // If set to true, it will prefer to use H.264 for P2P calls (if H.264
  211. // is supported).
  212. preferH264: true
  213. // If set to true, disable H.264 video codec by stripping it out of the
  214. // SDP.
  215. // disableH264: false,
  216. // How long we're going to wait, before going back to P2P after the 3rd
  217. // participant has left the conference (to filter out page reload).
  218. // backToP2PDelay: 5
  219. },
  220. // A list of scripts to load as lib-jitsi-meet "analytics handlers".
  221. // analyticsScriptUrls: [
  222. // "libs/analytics-ga.js", // google-analytics
  223. // "https://example.com/my-custom-analytics.js"
  224. // ],
  225. // The Google Analytics Tracking ID
  226. // googleAnalyticsTrackingId = 'your-tracking-id-here-UA-123456-1',
  227. // Information about the jitsi-meet instance we are connecting to, including
  228. // the user region as seen by the server.
  229. deploymentInfo: {
  230. // shard: "shard1",
  231. // region: "europe",
  232. // userRegion: "asia"
  233. }
  234. // List of undocumented settings used in jitsi-meet
  235. /**
  236. alwaysVisibleToolbar
  237. autoEnableDesktopSharing
  238. autoRecord
  239. autoRecordToken
  240. debug
  241. debugAudioLevels
  242. deploymentInfo
  243. dialInConfCodeUrl
  244. dialInNumbersUrl
  245. dialOutAuthUrl
  246. dialOutCodesUrl
  247. disableRemoteControl
  248. displayJids
  249. enableLocalVideoFlip
  250. etherpad_base
  251. externalConnectUrl
  252. firefox_fake_device
  253. googleApiApplicationClientID
  254. iAmRecorder
  255. iAmSipGateway
  256. peopleSearchQueryTypes
  257. peopleSearchUrl
  258. requireDisplayName
  259. tokenAuthUrl
  260. */
  261. // List of undocumented settings used in lib-jitsi-meet
  262. /**
  263. _peerConnStatusOutOfLastNTimeout
  264. _peerConnStatusRtcMuteTimeout
  265. abTesting
  266. avgRtpStatsN
  267. callStatsConfIDNamespace
  268. callStatsCustomScriptUrl
  269. desktopSharingSources
  270. disableAEC
  271. disableAGC
  272. disableAP
  273. disableHPF
  274. disableNS
  275. enableLipSync
  276. enableTalkWhileMuted
  277. forceJVB121Ratio
  278. hiddenDomain
  279. ignoreStartMuted
  280. nick
  281. startBitrate
  282. */
  283. };
  284. /* eslint-enable no-unused-vars, no-var */