Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total summary count #3351

Merged
merged 18 commits into from
May 14, 2023
8 changes: 8 additions & 0 deletions spec/unit/webrtc/stats/summaryStatsReporter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ describe("SummaryStatsReporter", () => {
percentageReceivedVideoMedia: 0.75,
maxJitter: 0,
maxPacketLoss: 0,
peerConnections: 4,
percentageConcealedAudio: 0.0375,
});
});
Expand Down Expand Up @@ -160,6 +161,7 @@ describe("SummaryStatsReporter", () => {
percentageReceivedVideoMedia: 1,
maxJitter: 0,
maxPacketLoss: 0,
peerConnections: 1,
percentageConcealedAudio: 0,
});
});
Expand Down Expand Up @@ -195,6 +197,7 @@ describe("SummaryStatsReporter", () => {
percentageReceivedVideoMedia: 0,
maxJitter: 0,
maxPacketLoss: 0,
peerConnections: 1,
percentageConcealedAudio: 0,
});
});
Expand Down Expand Up @@ -230,6 +233,7 @@ describe("SummaryStatsReporter", () => {
percentageReceivedVideoMedia: 1,
maxJitter: 0,
maxPacketLoss: 0,
peerConnections: 1,
percentageConcealedAudio: 0,
});
});
Expand Down Expand Up @@ -328,6 +332,7 @@ describe("SummaryStatsReporter", () => {
percentageReceivedVideoMedia: 1,
maxJitter: 20,
maxPacketLoss: 40,
peerConnections: 4,
percentageConcealedAudio: 0,
});
});
Expand Down Expand Up @@ -363,6 +368,7 @@ describe("SummaryStatsReporter", () => {
percentageReceivedVideoMedia: 1,
maxJitter: 0,
maxPacketLoss: 0,
peerConnections: 1,
percentageConcealedAudio: 0,
});
});
Expand Down Expand Up @@ -398,6 +404,7 @@ describe("SummaryStatsReporter", () => {
percentageReceivedVideoMedia: 1,
maxJitter: 0,
maxPacketLoss: 0,
peerConnections: 1,
percentageConcealedAudio: 0,
});
});
Expand Down Expand Up @@ -433,6 +440,7 @@ describe("SummaryStatsReporter", () => {
percentageReceivedVideoMedia: 1,
maxJitter: 0,
maxPacketLoss: 0,
peerConnections: 1,
percentageConcealedAudio: 0,
});
});
Expand Down
1 change: 1 addition & 0 deletions src/webrtc/stats/statsReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ export interface SummaryStatsReport {
maxJitter: number;
maxPacketLoss: number;
percentageConcealedAudio: number;
peerConnections: number;
}
1 change: 1 addition & 0 deletions src/webrtc/stats/summaryStatsReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class SummaryStatsReporter {
? (summaryCounter.concealedAudio / summaryCounter.totalAudio).toFixed(decimalPlaces)
: 0,
),
peerConnections: summaryTotalCount,
} as SummaryStatsReport;
this.emitter.emitSummaryStatsReport(report);
}
Expand Down