Browse Source

Fixes bridge is down UI notification.

efficient_tiling
paweldomas 10 years ago
parent
commit
ea6eaad563
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      conference.js

+ 6
- 2
conference.js View File

89
         room.on(ConferenceEvents.CONFERENCE_FAILED,
89
         room.on(ConferenceEvents.CONFERENCE_FAILED,
90
             this._onConferenceFailed.bind(this));
90
             this._onConferenceFailed.bind(this));
91
     }
91
     }
92
-    _handleConferenceFailed(err) {
92
+    _handleConferenceFailed(err, msg) {
93
         this._unsubscribe();
93
         this._unsubscribe();
94
         this._reject(err);
94
         this._reject(err);
95
     }
95
     }
108
             APP.UI.notifyConnectionFailed(msg);
108
             APP.UI.notifyConnectionFailed(msg);
109
             break;
109
             break;
110
 
110
 
111
+        case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
112
+            APP.UI.notifyBridgeDown();
113
+            break;
114
+
111
             // not enough rights to create conference
115
             // not enough rights to create conference
112
         case ConferenceErrors.AUTHENTICATION_REQUIRED:
116
         case ConferenceErrors.AUTHENTICATION_REQUIRED:
113
             // schedule reconnect to check if someone else created the room
117
             // schedule reconnect to check if someone else created the room
120
             break;
124
             break;
121
 
125
 
122
         default:
126
         default:
123
-            this.handleConferenceFailed(err);
127
+            this._handleConferenceFailed(err, msg);
124
         }
128
         }
125
     }
129
     }
126
     _unsubscribe() {
130
     _unsubscribe() {

Loading…
Cancel
Save