Lints
This commit is contained in:
parent
393b49fdbe
commit
c8fdf66099
@ -23,23 +23,22 @@ let messages = Locales[locale] || Locales['en'] || {};
|
||||
|
||||
// Helper to load javascript libraries from the BBB server
|
||||
function loadLib(libname, success, fail) {
|
||||
const successCallback = function(cb) {
|
||||
const successCallback = function (cb) {
|
||||
console.log(`successfully loaded lib - ${this}`);
|
||||
if (typeof (cb) == 'function' || cb instanceof Function) {
|
||||
cb();
|
||||
}
|
||||
};
|
||||
|
||||
const failCallback = function(cb) {
|
||||
const failCallback = function (cb) {
|
||||
console.log(`failed to load lib - ${this}`);
|
||||
if (typeof (cb) == 'function' || cb instanceof Function) {
|
||||
cb();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
return Meteor.Loader.loadJs(`${window.location.origin}/client/lib/${libname}`, successCallback.bind(libname, success),
|
||||
10000).fail(failCallback.bind(libname, fail));
|
||||
return Meteor.Loader.loadJs(`${window.location.origin}/client/lib/${libname}`,
|
||||
successCallback.bind(libname, success), 10000).fail(failCallback.bind(libname, fail));
|
||||
};
|
||||
|
||||
Meteor.startup(() => {
|
||||
@ -48,9 +47,10 @@ Meteor.startup(() => {
|
||||
loadLib('bbblogger.js');
|
||||
loadLib('jquery.json-2.4.min.js');
|
||||
loadLib('jquery.FSRTC.js');
|
||||
loadLib('jquery.verto.js', function() {
|
||||
loadLib('jquery.verto.js', function () {
|
||||
loadLib('verto_extension.js');
|
||||
});
|
||||
|
||||
loadLib('jquery.jsonrpcclient.js');
|
||||
loadLib('verto_extension_share.js');
|
||||
|
||||
|
@ -56,14 +56,17 @@ function exitVoiceCall(afterExitCall) {
|
||||
afterExitCall(this, clientConfig.app.listenOnly);
|
||||
}
|
||||
} else {
|
||||
console.log(`RETRYING hangup on WebRTC call in
|
||||
${clientConfig.media.WebRTCHangupRetryInterval} ms`);
|
||||
console.log('RETRYING hangup on WebRTC call in ' +
|
||||
`${clientConfig.media.WebRTCHangupRetryInterval} ms`);
|
||||
|
||||
// try again periodically
|
||||
setTimeout(checkToHangupCall, clientConfig.media.WebRTCHangupRetryInterval);
|
||||
}
|
||||
})
|
||||
|
||||
// automatically run function
|
||||
})(this, afterExitCall);
|
||||
(this, afterExitCall);
|
||||
|
||||
return false;
|
||||
};
|
||||
}
|
||||
@ -105,7 +108,7 @@ function joinVoiceCall(options) {
|
||||
const conferenceUsername = createVertoUserName();
|
||||
conferenceIdNumber = '1009';
|
||||
joinVertoAudio({ extension, conferenceUsername, conferenceIdNumber,
|
||||
listenOnly: options.isListenOnly });
|
||||
listenOnly: options.isListenOnly, });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ function watchDeskshare(options) {
|
||||
const conferenceUsername = createVertoUserName();
|
||||
conferenceIdNumber = '1009';
|
||||
watchVertoVideo({ extension, conferenceUsername, conferenceIdNumber,
|
||||
watchOnly: true });
|
||||
watchOnly: true, });
|
||||
}
|
||||
|
||||
// if remote deskshare has been ended disconnect and hide the video stream
|
||||
@ -43,7 +43,6 @@ function presenterDeskshareHasEnded() {
|
||||
// if remote deskshare has been started connect and display the video stream
|
||||
function presenterDeskshareHasStarted() {
|
||||
const voiceBridge = Deskshare.findOne().deskshare.voiceBridge;
|
||||
// const voiceBridge = '3500';
|
||||
watchDeskshare({
|
||||
watchOnly: true,
|
||||
extension: voiceBridge,
|
||||
|
@ -16,19 +16,19 @@ export default class AudioMenu extends BaseMenu {
|
||||
<p>inside audio menu</p>
|
||||
|
||||
<button onClick={
|
||||
function() {
|
||||
exitVoiceCall(function() {console.log('exit callback');});
|
||||
function () {
|
||||
exitVoiceCall(function () {console.log('exit callback');});
|
||||
}
|
||||
}>exit voice call</button>
|
||||
<br/>
|
||||
<button onClick={
|
||||
function() {
|
||||
function () {
|
||||
joinVoiceCall({ isListenOnly: true });
|
||||
}
|
||||
}>listen only</button>
|
||||
|
||||
<button onClick={
|
||||
function() {
|
||||
function () {
|
||||
joinVoiceCall({ isListenOnly: false });
|
||||
}
|
||||
}>join mic</button>
|
||||
|
Loading…
Reference in New Issue
Block a user