bigbluebutton-Github/bigbluebutton-html5/config.js
2016-06-27 11:24:37 -07:00

90 lines
2.6 KiB
JavaScript
Executable File

// 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) <a href="event:http://www.bigbluebutton.org/content/videos"><u>tutorial ' +
'videos</u></a>.\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 ' +
"<a href='http://docs.bigbluebutton.org/1.0/10overview.html' target='_blank'><u>BigBlueButton";
clientConfig.defaultWelcomeMessageFooter = `${tempString} ` +
`${clientConfig.bbbServerVersion}</u></a>.`;
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 = true;
// 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 };