fromFFI static method
Creates RtcIceCandidatePairStats basing on the
ffi.RtcStatsType_RtcIceCandidatePairStats
received from the native side.
Implementation
static RtcIceCandidatePairStats fromFFI(
ffi.RtcStatsType_RtcIceCandidatePairStats stats) {
return RtcIceCandidatePairStats(
RtcStatsIceCandidatePairState.values[stats.state.index],
stats.nominated,
stats.bytesSent,
stats.bytesReceived,
stats.totalRoundTripTime,
stats.currentRoundTripTime,
stats.availableOutgoingBitrate,
);
}