bigbluebutton-Github/bigbluebutton-html5/config.js

88 lines
2.6 KiB
JavaScript
Raw Normal View History

2016-01-15 13:46:41 +08:00
// TODO: should be split on server and client side
// // Global configurations file
2016-05-19 04:19:50 +08:00
let clientConfig = {};
2016-01-13 04:15:16 +08:00
2016-01-15 13:46:41 +08:00
// Default global variables
2016-05-19 04:19:50 +08:00
clientConfig.appName = 'BigBlueButton HTML5 Client';
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.bbbServerVersion = '1.0-beta';
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.copyrightYear = '2015';
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.html5ClientBuild = 'NNNN';
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.defaultWelcomeMessage = 'Welcome to %%CONFNAME%%!\r\rFor help on using BigBlueButton see ' +
2016-05-05 05:49:01 +08:00
'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';
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
const tempString = 'This server is running a build of ' +
2016-05-05 05:49:01 +08:00
"<a href='http://docs.bigbluebutton.org/1.0/10overview.html' target='_blank'><u>BigBlueButton";
2016-05-19 04:19:50 +08:00
clientConfig.defaultWelcomeMessageFooter = `${tempString} ${clientConfig.bbbServerVersion}</u></a>.`;
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.maxUsernameLength = 30;
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.maxChatLength = 140;
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.lockOnJoin = true;
2016-01-13 04:15:16 +08:00
2016-01-15 13:46:41 +08:00
//// Application configurations
2016-05-19 04:19:50 +08:00
clientConfig.app = {};
2016-01-13 04:15:16 +08:00
2016-01-15 13:46:41 +08:00
//default font sizes for mobile / desktop
2016-05-19 04:19:50 +08:00
clientConfig.app.mobileFont = 16;
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.app.desktopFont = 14;
2016-01-13 04:15:16 +08:00
2016-01-15 13:46:41 +08:00
// Will offer the user to join the audio when entering the meeting
2016-05-19 04:19:50 +08:00
clientConfig.app.autoJoinAudio = false;
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.app.listenOnly = false;
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
clientConfig.app.skipCheck = false;
2016-01-13 04:15:16 +08:00
2016-05-05 05:49:01 +08:00
// The amount of time the client will wait before making another call to
// successfully hangup the WebRTC conference call
2016-01-15 13:46:41 +08:00
2016-05-20 02:33:27 +08:00
clientConfig.media = {};
clientConfig.media.WebRTCHangupRetryInterval = 2000;
// IP address of FreeSWITCH server for use of mod_verto and WebRTC deshsharing
2016-05-20 03:27:49 +08:00
clientConfig.media.vertoServerAddress = 'HOST';
2016-05-20 02:33:27 +08:00
// Allows a caller to access a FreeSWITCH dialplan
2016-05-20 03:27:49 +08:00
clientConfig.media.freeswitchProfilePassword = '1234';
2016-05-20 02:33:27 +08:00
2016-05-20 03:27:49 +08:00
clientConfig.media.vertoPort = '8082';
2016-05-20 02:33:27 +08:00
// specifies whether to use SIP.js for audio over mod_verto
clientConfig.media.useSIPAudio = false;
2016-01-13 04:15:16 +08:00
// Configs for redis
2016-05-19 04:19:50 +08:00
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',
},
},
};
2016-01-13 04:15:16 +08:00
2016-05-19 04:19:50 +08:00
export { clientConfig, redisConfig };