StreamSessionStatistics

@Serializable
data class StreamSessionStatistics(val timestampNanos: Long, val totalBytesSent: Long, val totalBytesReceived: Long, val sendBitrate: Double, val receiveBitrate: Double, val queuedSendBytes: Long? = null, val transportLayer: String? = null, val capture: StreamCaptureStatistics? = null, val encoding: StreamEncodingStatistics? = null, val roundTripTimeMillis: Double? = null, val roundTripTimeAgeMillis: Long? = null, val estimatedAvailableBitrate: Long? = null, val totalPacketsSent: Long? = null, val totalPacketsReceived: Long? = null, val totalPacketsLostOnSend: Long? = null, val totalPacketsLostOnReceive: Long? = null, val totalPacketsRetransmitted: Long? = null, val sendBufferDurationMillis: Double? = null, val videoPacketsLost: Long? = null, val videoPacketLossFraction: Double? = null, val videoJitterMillis: Double? = null, val receiverReportAgeMillis: Long? = null, val estimatedAvailableBitrateAgeMillis: Long? = null)

Immutable, on-demand transport statistics for bitrate adaptation. Rates are bits/second. Byte accounting differs by transport: RTMP is socket-stream bytes (including RTMP handshake/protocol; RTMPS plaintext before TLS), SRT includes its native protocol overhead, RTC counts RTP bytes before SRTP (not ICE/DTLS). Missing measurements are null, not zero. A zero measurement is a measured idle/empty state. Receiver feedback is the latest remote report, not a local sampling-interval measurement.

Constructors

Link copied to clipboard
constructor(timestampNanos: Long, totalBytesSent: Long, totalBytesReceived: Long, sendBitrate: Double, receiveBitrate: Double, queuedSendBytes: Long? = null, transportLayer: String? = null, capture: StreamCaptureStatistics? = null, encoding: StreamEncodingStatistics? = null, roundTripTimeMillis: Double? = null, roundTripTimeAgeMillis: Long? = null, estimatedAvailableBitrate: Long? = null, totalPacketsSent: Long? = null, totalPacketsReceived: Long? = null, totalPacketsLostOnSend: Long? = null, totalPacketsLostOnReceive: Long? = null, totalPacketsRetransmitted: Long? = null, sendBufferDurationMillis: Double? = null, videoPacketsLost: Long? = null, videoPacketLossFraction: Double? = null, videoJitterMillis: Double? = null, receiverReportAgeMillis: Long? = null, estimatedAvailableBitrateAgeMillis: Long? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard