-
public final class PeerConnectionStats
-
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<Integer>latencyprivate final StateFlow<String>resolutionprivate final StateFlow<String>qualityDropReasonprivate final StateFlow<Integer>jitterInMsprivate final StateFlow<Float>bitrateKbpsprivate final StateFlow<String>videoCodecprivate final StateFlow<Float>audioBitrateKbpsprivate final StateFlow<String>audioCodecprivate final StateFlow<Float>audioTargetBitrateKbps
-
Constructor Summary
Constructors Constructor Description PeerConnectionStats(CoroutineScope scope)
-
Method Summary
Modifier and Type Method Description final StateFlow<Integer>getLatency()final StateFlow<String>getResolution()final StateFlow<String>getQualityDropReason()final StateFlow<Integer>getJitterInMs()final StateFlow<Float>getBitrateKbps()final StateFlow<String>getVideoCodec()final StateFlow<Float>getAudioBitrateKbps()Audio bitrate actually sent or received, measured from the RTP byte counters between two stats polls. final StateFlow<String>getAudioCodec()final StateFlow<Float>getAudioTargetBitrateKbps()The bitrate the audio encoder is aiming for, as reported by outbound-rtp.-
-
Method Detail
-
getLatency
final StateFlow<Integer> getLatency()
-
getResolution
final StateFlow<String> getResolution()
-
getQualityDropReason
final StateFlow<String> getQualityDropReason()
-
getJitterInMs
final StateFlow<Integer> getJitterInMs()
-
getBitrateKbps
final StateFlow<Float> getBitrateKbps()
-
getVideoCodec
final StateFlow<String> getVideoCodec()
-
getAudioBitrateKbps
final StateFlow<Float> getAudioBitrateKbps()
Audio bitrate actually sent or received, measured from the RTP byte counters between two stats polls.
Distinct from bitrateKbps, which reports the connection's available bandwidth estimate rather than anything that was transmitted. This one moves when the encoder does.
-
getAudioCodec
final StateFlow<String> getAudioCodec()
-
getAudioTargetBitrateKbps
final StateFlow<Float> getAudioTargetBitrateKbps()
The bitrate the audio encoder is aiming for, as reported by
outbound-rtp.The requested value, where audioBitrateKbps is what actually went out. Comparing the two is how you tell "we asked for more" from "we are sending more".
-
-
-
-