From f4f0a7d90eb2a07011a5f68e4e6a90be30f02495 Mon Sep 17 00:00:00 2001 From: Boris Grozev Date: Fri, 12 Aug 2016 15:13:27 -0500 Subject: [PATCH] Logs stream switch delays using analytics instead of callstats. --- conference.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/conference.js b/conference.js index 5f9dbfca6..0c895be31 100644 --- a/conference.js +++ b/conference.js @@ -1305,14 +1305,13 @@ export default { APP.UI.addListener(UIEvents.RESOLUTION_CHANGED, (id, oldResolution, newResolution, delay) => { - var logObject = { - id: "resolution_change", - participant: id, - oldValue: oldResolution, - newValue: newResolution, - delay: delay - }; - room.sendApplicationLog(JSON.stringify(logObject)); + // We only care about the delay between simulcast streams. + // Longer delays will be caused by something else and will just + // poison the data. + if (delay < 2000) { + JitsiMeetJS.analytics + .sendEvent('stream.switch.delay', delay); + } }); // Starts or stops the recording for the conference.