Kaynağa Gözat

Quits the conference when too old browser is being used.

j8
paweldomas 11 yıl önce
ebeveyn
işleme
249d69bdc9
2 değiştirilmiş dosya ile 11 ekleme ve 0 silme
  1. 10
    0
      app.js
  2. 1
    0
      libs/strophe/strophe.jingle.session.js

+ 10
- 0
app.js Dosyayı Görüntüle

@@ -1114,3 +1114,13 @@ function setView(viewName) {
1114 1114
 //        document.getElementById('videolayout_fullscreen').disabled  = true;
1115 1115
 //    }
1116 1116
 }
1117
+
1118
+$(document).bind('fatalError.jingle',
1119
+    function (event, session, error)
1120
+    {
1121
+        sessionTerminated = true;
1122
+        connection.emuc.doLeave();
1123
+        openMessageDialog(  "Sorry",
1124
+            "Your browser version is too old. Please update and try again...");
1125
+    }
1126
+);

+ 1
- 0
libs/strophe/strophe.jingle.session.js Dosyayı Görüntüle

@@ -420,6 +420,7 @@ JingleSession.prototype.setRemoteDescription = function (elem, desctype) {
420 420
         },
421 421
         function (e) {
422 422
             console.error('setRemoteDescription error', e);
423
+            $(document).trigger('fatalError.jingle', [self, e]);
423 424
         }
424 425
     );
425 426
 };

Loading…
İptal
Kaydet