Adds close page.

When enabled after hanging up redirect to close page, if needed feedback will be displayed.
This commit is contained in:
damencho 2016-09-22 14:19:50 -05:00
parent 415619021f
commit fcf7069b25
3 changed files with 10 additions and 0 deletions

0
close.html Normal file
View File

View File

@ -203,10 +203,18 @@ function muteLocalVideo (muted) {
/** /**
* Check if the welcome page is enabled and redirects to it. * Check if the welcome page is enabled and redirects to it.
* If requested show a thank you dialog before that. * 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 * @param {boolean} showThankYou whether we should show a thank you dialog
*/ */
function maybeRedirectToWelcomePage(showThankYou) { 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) { if (showThankYou) {
APP.UI.messageHandler.openMessageDialog( APP.UI.messageHandler.openMessageDialog(
null, null, null, null, null, null,

View File

@ -56,6 +56,8 @@ var config = {
//disableAdaptiveSimulcast: false, //disableAdaptiveSimulcast: false,
enableRecording: false, enableRecording: false,
enableWelcomePage: true, enableWelcomePage: true,
//enableClosePage: false, // enabling the close page will ignore the welcome
// page redirection when call is hangup
disableSimulcast: false, disableSimulcast: false,
logStats: false, // Enable logging of PeerConnection stats via the focus 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. // requireDisplayName: true, // Forces the participants that doesn't have display name to enter it when they enter the room.