Logs stream switch delays using analytics instead of callstats.

This commit is contained in:
Boris Grozev 2016-08-12 15:13:27 -05:00
parent ec98e6fdff
commit f4f0a7d90e
1 changed files with 7 additions and 8 deletions

View File

@ -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.