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