Переглянути джерело

Adds close page.

When enabled after hanging up redirect to close page, if needed feedback will be displayed.
master
damencho 8 роки тому
джерело
коміт
fcf7069b25
3 змінених файлів з 10 додано та 0 видалено
  1. 0
    0
      close.html
  2. 8
    0
      conference.js
  3. 2
    0
      config.js

+ 0
- 0
close.html Переглянути файл


+ 8
- 0
conference.js Переглянути файл

@@ -203,10 +203,18 @@ function muteLocalVideo (muted) {
203 203
 /**
204 204
  * Check if the welcome page is enabled and redirects to it.
205 205
  * If requested show a thank you dialog before that.
206
+ * If we have a close page enabled, redirect to it without
207
+ * showing any other dialog.
206 208
  * @param {boolean} showThankYou whether we should show a thank you dialog
207 209
  */
208 210
 function maybeRedirectToWelcomePage(showThankYou) {
209 211
 
212
+    // if close page is enabled redirect to it, without further action
213
+    if (config.enableClosePage) {
214
+        window.location.pathname = "close.html";
215
+        return;
216
+    }
217
+
210 218
     if (showThankYou) {
211 219
         APP.UI.messageHandler.openMessageDialog(
212 220
             null, null, null,

+ 2
- 0
config.js Переглянути файл

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

Завантаження…
Відмінити
Зберегти