Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds close page.

damenchofcf7069b25bf
diff --git a/close.html b/close.html
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/conference.js b/conference.js
index 07a2187850..7671fdc9c5 100644
--- a/conference.js
+++ b/conference.js
@@ -203,10 +203,18 @@ function muteLocalVideo (muted) {
/**
* Check if the welcome page is enabled and redirects to it.
* If requested show a thank you dialog before that.
+ * If we have a close page enabled, redirect to it without
+ * showing any other dialog.
* @param {boolean} showThankYou whether we should show a thank you dialog
*/
function maybeRedirectToWelcomePage(showThankYou) {
+ // if close page is enabled redirect to it, without further action
+ if (config.enableClosePage) {
+ window.location.pathname = "close.html";
+ return;
+ }
+
if (showThankYou) {
APP.UI.messageHandler.openMessageDialog(
null, null, null,
diff --git a/config.js b/config.js
index 18f6b30699..912b90f236 100644
--- a/config.js
+++ b/config.js
@@ -56,6 +56,8 @@ var config = {
//disableAdaptiveSimulcast: false,
enableRecording: false,
enableWelcomePage: true,
+ //enableClosePage: false, // enabling the close page will ignore the welcome
+ // page redirection when call is hangup
disableSimulcast: false,
logStats: false, // Enable logging of PeerConnection stats via the focus
// requireDisplayName: true, // Forces the participants that doesn't have display name to enter it when they enter the room.