-
- All Implemented Interfaces:
-
java.io.Serializable
public final class InboundRtp extends Message<InboundRtp, Nothing>
=================================================================== INBOUND (SUBSCRIBER RECEIVING MEDIA) ===================================================================
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classInboundRtp.Companion
-
Field Summary
Fields Modifier and Type Field Description private final RtpBasebaseprivate final Doublejitter_secondsprivate final Longpackets_receivedprivate final Longpackets_lostprivate final Doublepacket_loss_percentprivate final Integerconcealment_eventsprivate final Doubleconcealment_percentprivate final Doublefpsprivate final Doublefreeze_duration_secondsprivate final Doubleavg_decode_time_secondsprivate final Integermin_dimension_pxprivate final ProtoAdapter<InboundRtp>adapterprivate final ByteStringunknownFields
-
Constructor Summary
Constructors Constructor Description InboundRtp(RtpBase base, Double jitter_seconds, Long packets_received, Long packets_lost, Double packet_loss_percent, Integer concealment_events, Double concealment_percent, Double fps, Double freeze_duration_seconds, Double avg_decode_time_seconds, Integer min_dimension_px, ByteString unknownFields)
-
Method Summary
Modifier and Type Method Description final RtpBasegetBase()final DoublegetJitter_seconds()stat\["jitter"\] final LonggetPackets_received()stat\["packetsReceived"\] final LonggetPackets_lost()stat\["packetsLost"\] final DoublegetPacket_loss_percent()(packets_lost / (packets_received + packets_lost)) * 100;skip if denominator <= 0 or counters decreased final IntegergetConcealment_events()-------- AUDIO METRICS -------- stat\["concealmentEvents"\] final DoublegetConcealment_percent()(concealedSamples / totalSamplesReceived) * 100 when totalSamplesReceived >= 96_000 (≈2 s @ 48 kHz) final DoublegetFps()-------- VIDEO METRICS -------- use delta(framesDecoded)/delta(time) with prev sample final DoublegetFreeze_duration_seconds()stat\["totalFreezesDuration"\] final DoublegetAvg_decode_time_seconds()stat\["totalDecodeTime"\] / max(1, stat\["framesDecoded"\]) final IntegergetMin_dimension_px()min(stat\["frameWidth"\], stat\["frameHeight"\]) for video-like tracks final ProtoAdapter<InboundRtp>adapter()final ByteStringunknownFields()VoidnewBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final InboundRtpcopy(RtpBase base, Double jitter_seconds, Long packets_received, Long packets_lost, Double packet_loss_percent, Integer concealment_events, Double concealment_percent, Double fps, Double freeze_duration_seconds, Double avg_decode_time_seconds, Integer min_dimension_px, ByteString unknownFields)-
-
Constructor Detail
-
InboundRtp
InboundRtp(RtpBase base, Double jitter_seconds, Long packets_received, Long packets_lost, Double packet_loss_percent, Integer concealment_events, Double concealment_percent, Double fps, Double freeze_duration_seconds, Double avg_decode_time_seconds, Integer min_dimension_px, ByteString unknownFields)
-
-
Method Detail
-
getJitter_seconds
final Double getJitter_seconds()
stat\["jitter"\]
-
getPackets_received
final Long getPackets_received()
stat\["packetsReceived"\]
-
getPackets_lost
final Long getPackets_lost()
stat\["packetsLost"\]
-
getPacket_loss_percent
final Double getPacket_loss_percent()
(packets_lost / (packets_received + packets_lost)) * 100;skip if denominator <= 0 or counters decreased
-
getConcealment_events
final Integer getConcealment_events()
-------- AUDIO METRICS -------- stat\["concealmentEvents"\]
-
getConcealment_percent
final Double getConcealment_percent()
(concealedSamples / totalSamplesReceived) * 100 when totalSamplesReceived >= 96_000 (≈2 s @ 48 kHz)
-
getFps
final Double getFps()
-------- VIDEO METRICS -------- use delta(framesDecoded)/delta(time) with prev sample
-
getFreeze_duration_seconds
final Double getFreeze_duration_seconds()
stat\["totalFreezesDuration"\]
-
getAvg_decode_time_seconds
final Double getAvg_decode_time_seconds()
stat\["totalDecodeTime"\] / max(1, stat\["framesDecoded"\])
-
getMin_dimension_px
final Integer getMin_dimension_px()
min(stat\["frameWidth"\], stat\["frameHeight"\]) for video-like tracks
-
adapter
final ProtoAdapter<InboundRtp> adapter()
-
unknownFields
final ByteString unknownFields()
-
newBuilder
@Deprecated(message = Shouldn't be used in Kotlin, level = DeprecationLevel.HIDDEN) Void newBuilder()
-
copy
final InboundRtp copy(RtpBase base, Double jitter_seconds, Long packets_received, Long packets_lost, Double packet_loss_percent, Integer concealment_events, Double concealment_percent, Double fps, Double freeze_duration_seconds, Double avg_decode_time_seconds, Integer min_dimension_px, ByteString unknownFields)
-
-
-
-