Add Connection Info on Android and count received voice
Connection Info gains a "Voice received" section on both frontends, counting what our own playback made of a speaker's voice (everyone's, for ourselves): packets received, frames played and missed, packets out of order, dropped as too late, and discarded as copies. Android gets the window itself as a page from the client sheet. The rows and their formatting live in core, shared by both frontends; the Swing dialog keeps its tabs on one row. A minute's bandwidth now shows as the average rate it is labelled as, not the minute's bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -88,6 +88,21 @@ class VoiceStreamTest {
|
||||
assertEquals(List.of(true, false), talk);
|
||||
}
|
||||
|
||||
@Test
|
||||
void countsWhatCameInAndWhatWasMissing() {
|
||||
offer(0, 1);
|
||||
offer(2, 3);
|
||||
offer(1, 2); // out of order, still in time
|
||||
offer(2, 3); // a copy
|
||||
pull();
|
||||
pull();
|
||||
pull();
|
||||
pull(); // 3 never arrives: concealed
|
||||
offer(3, 4); // too late, dropped
|
||||
offer(3, 4); // a copy of that
|
||||
assertEquals(new VoiceReceiveStats(6, 3, 1, 1, 1, 2), stream.stats());
|
||||
}
|
||||
|
||||
@Test
|
||||
void theTalkersStopEndsTheBurst() {
|
||||
offer(0, 1);
|
||||
|
||||
Reference in New Issue
Block a user