fix(conference): disconnect on VIDEOBRIDGE_NOT_AVAILABLE error
Will disconnect on ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE. Show the same message when either JVB is not available or Jicofo disconnects.
This commit is contained in:
parent
469dee36ee
commit
229a3b4418
|
@ -329,10 +329,6 @@ class ConferenceConnector {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
|
|
||||||
APP.UI.notifyBridgeDown();
|
|
||||||
break;
|
|
||||||
|
|
||||||
// not enough rights to create conference
|
// not enough rights to create conference
|
||||||
case ConferenceErrors.AUTHENTICATION_REQUIRED:
|
case ConferenceErrors.AUTHENTICATION_REQUIRED:
|
||||||
// schedule reconnect to check if someone else created the room
|
// schedule reconnect to check if someone else created the room
|
||||||
|
@ -367,6 +363,10 @@ class ConferenceConnector {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// FIXME FOCUS_DISCONNECTED is confusing event name.
|
||||||
|
// What really happens there is that the library is not ready yet,
|
||||||
|
// because Jicofo is not available, but it is going to give
|
||||||
|
// it another try.
|
||||||
case ConferenceErrors.FOCUS_DISCONNECTED:
|
case ConferenceErrors.FOCUS_DISCONNECTED:
|
||||||
{
|
{
|
||||||
let [focus, retrySec] = params;
|
let [focus, retrySec] = params;
|
||||||
|
@ -375,8 +375,12 @@ class ConferenceConnector {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ConferenceErrors.FOCUS_LEFT:
|
case ConferenceErrors.FOCUS_LEFT:
|
||||||
|
case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
|
||||||
|
// FIXME the conference should be stopped by the library and not by
|
||||||
|
// the app. Both the errors above are unrecoverable from the library
|
||||||
|
// perspective.
|
||||||
room.leave().then(() => connection.disconnect());
|
room.leave().then(() => connection.disconnect());
|
||||||
APP.UI.notifyFocusLeft();
|
APP.UI.notifyVideoConferencingNotAvailable();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ConferenceErrors.CONFERENCE_MAX_USERS:
|
case ConferenceErrors.CONFERENCE_MAX_USERS:
|
||||||
|
|
|
@ -202,8 +202,7 @@
|
||||||
"detectext": "Error when trying to detect desktopsharing extension.",
|
"detectext": "Error when trying to detect desktopsharing extension.",
|
||||||
"failtoinstall": "Failed to install desktop sharing extension",
|
"failtoinstall": "Failed to install desktop sharing extension",
|
||||||
"failedpermissions": "Failed to obtain permissions to use the local microphone and/or camera.",
|
"failedpermissions": "Failed to obtain permissions to use the local microphone and/or camera.",
|
||||||
"bridgeUnavailable": "Jitsi Videobridge is currently unavailable. Please try again later!",
|
"serviceUnavailableMsg": "The video conferencing service is currently unavailable. Please try again later!",
|
||||||
"jicofoUnavailable": "Jicofo is currently unavailable. Please try again later!",
|
|
||||||
"maxUsersLimitReached": "The limit for maximum number of participants in the conference has been reached. The conference is full. Please try again later!",
|
"maxUsersLimitReached": "The limit for maximum number of participants in the conference has been reached. The conference is full. Please try again later!",
|
||||||
"lockTitle": "Lock failed",
|
"lockTitle": "Lock failed",
|
||||||
"lockMessage": "Failed to lock the conference.",
|
"lockMessage": "Failed to lock the conference.",
|
||||||
|
|
|
@ -195,13 +195,6 @@ UI.notifyConferenceDestroyed = function (reason) {
|
||||||
messageHandler.openDialog(title, reason, true, {}, () => false);
|
messageHandler.openDialog(title, reason, true, {}, () => false);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Notify user that Jitsi Videobridge is not accessible.
|
|
||||||
*/
|
|
||||||
UI.notifyBridgeDown = function () {
|
|
||||||
messageHandler.showError("dialog.error", "dialog.bridgeUnavailable");
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show chat error.
|
* Show chat error.
|
||||||
* @param err the Error
|
* @param err the Error
|
||||||
|
@ -1114,14 +1107,15 @@ UI.notifyFocusDisconnected = function (focus, retrySec) {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notify user that focus left the conference so page should be reloaded.
|
* Notify the user that the video conferencing service is badly broken and
|
||||||
|
* the page should be reloaded.
|
||||||
*/
|
*/
|
||||||
UI.notifyFocusLeft = function () {
|
UI.notifyVideoConferencingNotAvailable = function () {
|
||||||
let title = APP.translation.generateTranslationHTML(
|
let title = APP.translation.generateTranslationHTML(
|
||||||
'dialog.serviceUnavailable'
|
'dialog.serviceUnavailable'
|
||||||
);
|
);
|
||||||
let msg = APP.translation.generateTranslationHTML(
|
let msg = APP.translation.generateTranslationHTML(
|
||||||
'dialog.jicofoUnavailable'
|
'dialog.serviceUnavailableMsg'
|
||||||
);
|
);
|
||||||
messageHandler.openDialog(
|
messageHandler.openDialog(
|
||||||
title,
|
title,
|
||||||
|
|
Loading…
Reference in New Issue