From fcf7069b25bf4fa22a070f71d97916b4c91de4d7 Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 22 Sep 2016 14:19:50 -0500 Subject: [PATCH] Adds close page. When enabled after hanging up redirect to close page, if needed feedback will be displayed. --- close.html | 0 conference.js | 8 ++++++++ config.js | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 close.html diff --git a/close.html b/close.html new file mode 100644 index 000000000..e69de29bb diff --git a/conference.js b/conference.js index 07a218785..7671fdc9c 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 18f6b3069..912b90f23 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.