Merge pull request #785 from bgrozev/stream-switch-logs
Logs stream switch delays using analytics instead of callstats.
This commit is contained in:
commit
45830c1086
|
@ -1305,14 +1305,13 @@ export default {
|
||||||
|
|
||||||
APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,
|
APP.UI.addListener(UIEvents.RESOLUTION_CHANGED,
|
||||||
(id, oldResolution, newResolution, delay) => {
|
(id, oldResolution, newResolution, delay) => {
|
||||||
var logObject = {
|
// We only care about the delay between simulcast streams.
|
||||||
id: "resolution_change",
|
// Longer delays will be caused by something else and will just
|
||||||
participant: id,
|
// poison the data.
|
||||||
oldValue: oldResolution,
|
if (delay < 2000) {
|
||||||
newValue: newResolution,
|
JitsiMeetJS.analytics
|
||||||
delay: delay
|
.sendEvent('stream.switch.delay', delay);
|
||||||
};
|
}
|
||||||
room.sendApplicationLog(JSON.stringify(logObject));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Starts or stops the recording for the conference.
|
// Starts or stops the recording for the conference.
|
||||||
|
|
Loading…
Reference in New Issue