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
Adds additional logs, including timestamps relative to the initial request.
Boris Grozevcf8950110f48
diff --git a/app.js b/app.jsindex 6a4e44c504..5170e2295c 100644--- a/app.js+++ b/app.js@@ -60,6 +60,8 @@ function obtainConfigAndInit() {// Get config result callbackfunction(success, error) {if (success) {+ console.log("(TIME) configuration fetched:\t",+ window.performance.now());init();} else {// Show obtain config error,@@ -75,6 +77,7 @@ function obtainConfigAndInit() {$(document).ready(function () {+ console.log("(TIME) document ready:\t", window.performance.now());var URLProcessor = require("./modules/config/URLProcessor");URLProcessor.setConfigParametersFromUrl();diff --git a/index.html b/index.htmlindex 7584d1fd62..3844813bf2 100644--- a/index.html+++ b/index.html@@ -9,6 +9,7 @@<meta itemprop="name" content="Jitsi Meet"/><meta itemprop="description" content="Join a WebRTC video conference powered by the Jitsi Videobridge"/><meta itemprop="image" content="/images/jitsilogo.png"/>+ <script>console.log("(TIME) index.html loaded:\t", window.performance.now());</script><script src="https://api.callstats.io/static/callstats.min.js"></script><script src="config.js?v=14"></script><!-- adapt to your needs, i.e. set hosts and bosh path --><script src="interface_config.js?v=6"></script>diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.jsindex 20ea7ce39f..0bce83fc37 100644--- a/modules/UI/videolayout/SmallVideo.js+++ b/modules/UI/videolayout/SmallVideo.js@@ -117,6 +117,11 @@ SmallVideo.createStreamElement = function (stream) {element.id = (isVideo ? 'remoteVideo_' : 'remoteAudio_') +APP.RTC.getStreamID(stream);+ element.onplay = function() {+ console.log("(TIME) Render " + (isVideo ? 'video' : 'audio') + ":\t",+ window.performance.now());+ };+element.oncontextmenu = function () { return false; };return element;diff --git a/modules/xmpp/JingleSessionPC.js b/modules/xmpp/JingleSessionPC.jsindex 2fa407649f..23c2d1667c 100644--- a/modules/xmpp/JingleSessionPC.js+++ b/modules/xmpp/JingleSessionPC.js@@ -142,7 +142,8 @@ JingleSessionPC.prototype.doInitialize = function () {*/this.peerconnection.oniceconnectionstatechange = function (event) {if (!(self && self.peerconnection)) return;- console.info("Ice: " + self.peerconnection.iceConnectionState);+ console.log("(TIME) ICE " + self.peerconnection.iceConnectionState ++ ":\t", window.performance.now());self.updateModifySourcesQueue();switch (self.peerconnection.iceConnectionState) {case 'connected':diff --git a/modules/xmpp/strophe.emuc.js b/modules/xmpp/strophe.emuc.jsindex e4a7b10768..b37918e0da 100644--- a/modules/xmpp/strophe.emuc.js+++ b/modules/xmpp/strophe.emuc.js@@ -234,6 +234,8 @@ module.exports = function(XMPP, eventEmitter) {}if (!this.joined) {this.joined = true;+ console.log("(TIME) MUC joined:\t",+ window.performance.now());eventEmitter.emit(XMPPEvents.MUC_JOINED, from, member);this.list_members.push(from);}diff --git a/modules/xmpp/strophe.jingle.js b/modules/xmpp/strophe.jingle.jsindex 7fc87128e8..42599caa87 100644--- a/modules/xmpp/strophe.jingle.js+++ b/modules/xmpp/strophe.jingle.js@@ -95,6 +95,8 @@ module.exports = function(XMPP, eventEmitter) {// see http://xmpp.org/extensions/xep-0166.html#concepts-sessionswitch (action) {case 'session-initiate':+ console.log("(TIME) received session-initiate:\t",+ window.performance.now());var startMuted = $(iq).find('jingle>startmuted');if (startMuted && startMuted.length > 0) {var audioMuted = startMuted.attr("audio");diff --git a/modules/xmpp/xmpp.js b/modules/xmpp/xmpp.jsindex ba81115620..a95dcb39b5 100644--- a/modules/xmpp/xmpp.js+++ b/modules/xmpp/xmpp.js@@ -80,8 +80,9 @@ function connect(jid, password) {var connectionFailed = false;var lastErrorMsg;connection.connect(jid, password, function (status, msg) {- console.log('Strophe status changed to',- Strophe.getStatusString(status), msg);+ console.log("(TIME) Strophe " + Strophe.getStatusString(status) ++ (msg ? "[" + msg + "]" : "") ++ "\t:" + window.performance.now());if (status === Strophe.Status.CONNECTED) {if (config.useStunTurn) {connection.jingle.getStunAndTurnCredentials();