// TODO: should be split on server and client side // // Global configurations file let clientConfig = {}; // Default global variables clientConfig.appName = 'BigBlueButton HTML5 Client'; clientConfig.bbbServerVersion = '1.0-beta'; clientConfig.copyrightYear = '2015'; clientConfig.html5ClientBuild = 'NNNN'; clientConfig.defaultWelcomeMessage = 'Welcome to %%CONFNAME%%!\r\rFor help on using BigBlueButton see ' + 'these (short) tutorial ' + 'videos.\r\rTo join the audio bridge click the gear icon (upper-right hand corner). ' + ' Use a headset to avoid causing background noise for others.\r\r\r'; const tempString = 'This server is running a build of ' + "BigBlueButton"; clientConfig.defaultWelcomeMessageFooter = `${tempString} ${clientConfig.bbbServerVersion}.`; clientConfig.maxUsernameLength = 30; clientConfig.maxChatLength = 140; clientConfig.lockOnJoin = true; //// Application configurations clientConfig.app = {}; //default font sizes for mobile / desktop clientConfig.app.mobileFont = 16; clientConfig.app.desktopFont = 14; // Will offer the user to join the audio when entering the meeting clientConfig.app.autoJoinAudio = false; clientConfig.app.listenOnly = false; clientConfig.app.skipCheck = false; // The amount of time the client will wait before making another call to // successfully hangup the WebRTC conference call clientConfig.media = {}; clientConfig.media.WebRTCHangupRetryInterval = 2000; // IP address of FreeSWITCH server for use of mod_verto and WebRTC deshsharing clientConfig.media.vertoServerAddress = 'HOST'; // Allows a caller to access a FreeSWITCH dialplan clientConfig.media.freeswitchProfilePassword = '1234'; clientConfig.media.vertoPort = '8082'; // specifies whether to use SIP.js for audio over mod_verto clientConfig.media.useSIPAudio = false; // Configs for redis const redisConfig = { host: '127.0.0.1', post: '6379', timeout: 5000, channels: { fromBBBApps: 'bigbluebutton:from-bbb-apps:*', toBBBApps: { pattern: 'bigbluebutton:to-bbb-apps:*', chat: 'bigbluebutton:to-bbb-apps:chat', meeting: 'bigbluebutton:to-bbb-apps:meeting', presentation: 'bigbluebutton:to-bbb-apps:presentation', users: 'bigbluebutton:to-bbb-apps:users', voice: 'bigbluebutton:to-bbb-apps:voice', whiteboard: 'bigbluebutton:to-bbb-apps:whiteboard', polling: 'bigbluebutton:to-bbb-apps:polling', }, }, }; export { clientConfig, redisConfig };