You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-31 15:24:23 +03:00
Total summary count (#3351)
* add audio concealment to stats report * audio concealment to summary * make ts linter happy * format and rename * fix and add tests * make it prettier! * we can make it even prettier ?! * review * fix tests * pretty * one empty line to ... * remove ratio in audio concealment (ratio is now done in the summary) * remove comment * fix test * add peer connections to summary report * tests
This commit is contained in:
@ -125,6 +125,7 @@ describe("SummaryStatsReporter", () => {
|
|||||||
percentageReceivedVideoMedia: 0.75,
|
percentageReceivedVideoMedia: 0.75,
|
||||||
maxJitter: 0,
|
maxJitter: 0,
|
||||||
maxPacketLoss: 0,
|
maxPacketLoss: 0,
|
||||||
|
peerConnections: 4,
|
||||||
percentageConcealedAudio: 0.0375,
|
percentageConcealedAudio: 0.0375,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -160,6 +161,7 @@ describe("SummaryStatsReporter", () => {
|
|||||||
percentageReceivedVideoMedia: 1,
|
percentageReceivedVideoMedia: 1,
|
||||||
maxJitter: 0,
|
maxJitter: 0,
|
||||||
maxPacketLoss: 0,
|
maxPacketLoss: 0,
|
||||||
|
peerConnections: 1,
|
||||||
percentageConcealedAudio: 0,
|
percentageConcealedAudio: 0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -195,6 +197,7 @@ describe("SummaryStatsReporter", () => {
|
|||||||
percentageReceivedVideoMedia: 0,
|
percentageReceivedVideoMedia: 0,
|
||||||
maxJitter: 0,
|
maxJitter: 0,
|
||||||
maxPacketLoss: 0,
|
maxPacketLoss: 0,
|
||||||
|
peerConnections: 1,
|
||||||
percentageConcealedAudio: 0,
|
percentageConcealedAudio: 0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -230,6 +233,7 @@ describe("SummaryStatsReporter", () => {
|
|||||||
percentageReceivedVideoMedia: 1,
|
percentageReceivedVideoMedia: 1,
|
||||||
maxJitter: 0,
|
maxJitter: 0,
|
||||||
maxPacketLoss: 0,
|
maxPacketLoss: 0,
|
||||||
|
peerConnections: 1,
|
||||||
percentageConcealedAudio: 0,
|
percentageConcealedAudio: 0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -328,6 +332,7 @@ describe("SummaryStatsReporter", () => {
|
|||||||
percentageReceivedVideoMedia: 1,
|
percentageReceivedVideoMedia: 1,
|
||||||
maxJitter: 20,
|
maxJitter: 20,
|
||||||
maxPacketLoss: 40,
|
maxPacketLoss: 40,
|
||||||
|
peerConnections: 4,
|
||||||
percentageConcealedAudio: 0,
|
percentageConcealedAudio: 0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -363,6 +368,7 @@ describe("SummaryStatsReporter", () => {
|
|||||||
percentageReceivedVideoMedia: 1,
|
percentageReceivedVideoMedia: 1,
|
||||||
maxJitter: 0,
|
maxJitter: 0,
|
||||||
maxPacketLoss: 0,
|
maxPacketLoss: 0,
|
||||||
|
peerConnections: 1,
|
||||||
percentageConcealedAudio: 0,
|
percentageConcealedAudio: 0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -398,6 +404,7 @@ describe("SummaryStatsReporter", () => {
|
|||||||
percentageReceivedVideoMedia: 1,
|
percentageReceivedVideoMedia: 1,
|
||||||
maxJitter: 0,
|
maxJitter: 0,
|
||||||
maxPacketLoss: 0,
|
maxPacketLoss: 0,
|
||||||
|
peerConnections: 1,
|
||||||
percentageConcealedAudio: 0,
|
percentageConcealedAudio: 0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -433,6 +440,7 @@ describe("SummaryStatsReporter", () => {
|
|||||||
percentageReceivedVideoMedia: 1,
|
percentageReceivedVideoMedia: 1,
|
||||||
maxJitter: 0,
|
maxJitter: 0,
|
||||||
maxPacketLoss: 0,
|
maxPacketLoss: 0,
|
||||||
|
peerConnections: 1,
|
||||||
percentageConcealedAudio: 0,
|
percentageConcealedAudio: 0,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -78,4 +78,5 @@ export interface SummaryStatsReport {
|
|||||||
maxJitter: number;
|
maxJitter: number;
|
||||||
maxPacketLoss: number;
|
maxPacketLoss: number;
|
||||||
percentageConcealedAudio: number;
|
percentageConcealedAudio: number;
|
||||||
|
peerConnections: number;
|
||||||
}
|
}
|
||||||
|
@ -61,6 +61,7 @@ export class SummaryStatsReporter {
|
|||||||
? (summaryCounter.concealedAudio / summaryCounter.totalAudio).toFixed(decimalPlaces)
|
? (summaryCounter.concealedAudio / summaryCounter.totalAudio).toFixed(decimalPlaces)
|
||||||
: 0,
|
: 0,
|
||||||
),
|
),
|
||||||
|
peerConnections: summaryTotalCount,
|
||||||
} as SummaryStatsReport;
|
} as SummaryStatsReport;
|
||||||
this.emitter.emitSummaryStatsReport(report);
|
this.emitter.emitSummaryStatsReport(report);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user