/** * Get the Max of all the stats that are watched, for all the stats added with add() since the * last call to clear() in JSON. * * @return The Max of all the stats since last clear() in JSON. */ public String getMaxJSON() { String str = String.format( FakeUserStats.jsonMediaStreamStatsTemplate, -1, // ssrc not needed here downloadJitterMs.getMax(), downloadPercentLoss.getMax(), downloadRateKiloBitPerSec.getMax(), jitterBufferDelayMs.getMax(), jitterBufferDelayPackets.getMax(), nbDiscarded.getMax(), nbDiscardedFull.getMax(), nbDiscardedLate.getMax(), nbDiscardedReset.getMax(), nbDiscardedShrink.getMax(), nbFec.getMax(), nbPackets.getMax(), nbPacketsLost.getMax(), nbReceivedBytes.getMax(), nbSentBytes.getMax(), packetQueueCountPackets.getMax(), packetQueueSize.getMax(), percentDiscarded.getMax(), rttMs.getMax(), uploadJitterMs.getMax(), uploadPercentLoss.getMax(), uploadRateKiloBitPerSec.getMax()); return str; }