Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Cleans up logging a bit.
Boris Grozeve380f88c7778
diff --git a/app.js b/app.jsindex d4b47ae497..3e35da6f21 100644--- a/app.js+++ b/app.js@@ -121,8 +121,8 @@ function connect(jid, password) {var anonymousConnectionFailed = false;connection.connect(jid, password, function (status, msg) {+ console.log('Strophe status changed to', Strophe.getStatusString(status));if (status === Strophe.Status.CONNECTED) {- console.log('connected');if (config.useStunTurn) {connection.jingle.getStunAndTurnCredentials();}@@ -135,7 +135,6 @@ function connect(jid, password) {if(msg === 'x-strophe-bad-non-anon-jid') {anonymousConnectionFailed = true;}- console.log('status', status);} else if (status === Strophe.Status.DISCONNECTED) {if(anonymousConnectionFailed) {// prompt user for username and password@@ -145,8 +144,6 @@ function connect(jid, password) {// wrong password or username, prompt user$(document).trigger('passwordrequired.main');- } else {- console.log('status', status);}});}diff --git a/libs/strophe/strophe.util.js b/libs/strophe/strophe.util.jsindex a079c645fb..126ecf6331 100644--- a/libs/strophe/strophe.util.js+++ b/libs/strophe/strophe.util.js@@ -12,3 +12,30 @@ Strophe.log = function (level, msg) {break;}};++Strophe.getStatusString = function(status)+{+ switch (status)+ {+ case Strophe.Status.ERROR:+ return "ERROR";+ case Strophe.Status.CONNECTING:+ return "CONNECTING";+ case Strophe.Status.CONNFAIL:+ return "CONNFAIL";+ case Strophe.Status.AUTHENTICATING:+ return "AUTHENTICATING";+ case Strophe.Status.AUTHFAIL:+ return "AUTHFAIL";+ case Strophe.Status.CONNECTED:+ return "CONNECTED";+ case Strophe.Status.DISCONNECTED:+ return "DISCONNECTED";+ case Strophe.Status.DISCONNECTING:+ return "DISCONNECTING";+ case Strophe.Status.ATTACHED:+ return "ATTACHED";+ default:+ return "unknown";+ }+};