소스 검색

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
 /**
203
 /**
204
  * Check if the welcome page is enabled and redirects to it.
204
  * Check if the welcome page is enabled and redirects to it.
205
  * If requested show a thank you dialog before that.
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
  * @param {boolean} showThankYou whether we should show a thank you dialog
208
  * @param {boolean} showThankYou whether we should show a thank you dialog
207
  */
209
  */
208
 function maybeRedirectToWelcomePage(showThankYou) {
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
     if (showThankYou) {
218
     if (showThankYou) {
211
         APP.UI.messageHandler.openMessageDialog(
219
         APP.UI.messageHandler.openMessageDialog(
212
             null, null, null,
220
             null, null, null,

+ 2
- 0
config.js 파일 보기

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

Loading…
취소
저장