Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Quits the conference when too old browser is being used.

paweldomas249d69bdc9ad
diff --git a/app.js b/app.js
index 72204e9d82..c7e7a0424a 100644
--- a/app.js
+++ b/app.js
@@ -1114,3 +1114,13 @@ function setView(viewName) {
// document.getElementById('videolayout_fullscreen').disabled = true;
// }
}
+
+$(document).bind('fatalError.jingle',
+ function (event, session, error)
+ {
+ sessionTerminated = true;
+ connection.emuc.doLeave();
+ openMessageDialog( "Sorry",
+ "Your browser version is too old. Please update and try again...");
+ }
+);
diff --git a/libs/strophe/strophe.jingle.session.js b/libs/strophe/strophe.jingle.session.js
index cb92e2329b..1127a78d4b 100644
--- a/libs/strophe/strophe.jingle.session.js
+++ b/libs/strophe/strophe.jingle.session.js
@@ -420,6 +420,7 @@ JingleSession.prototype.setRemoteDescription = function (elem, desctype) {
},
function (e) {
console.error('setRemoteDescription error', e);
+ $(document).trigger('fatalError.jingle', [self, e]);
}
);
};