public class ReceiveTrackStatsImpl extends AbstractTrackStats implements ReceiveTrackStats
bitrate, bytes, bytesNotRetransmitted, bytesRetransmitted, packetRate, packets, packetsMissingFromCache, packetsNotRetransmitted, packetsRetransmitted
JITTER_UNSET
Constructor and Description |
---|
ReceiveTrackStatsImpl(int interval,
long ssrc)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getCurrentPacketsLost() |
double |
getLossRate() |
long |
getPacketsLost() |
void |
rtcpPacketReceived(int length)
Notifies this instance that an RTCP packet with a specific length was
received.
|
void |
rtpPacketReceived(int seq,
int length)
Notifies this instance that an RTP packet with a given length and
sequence number was received.
|
getBitrate, getBytes, getBytesNotRetransmitted, getBytesRetransmitted, getCurrentBytes, getCurrentPackets, getInterval, getJitter, getPacketRate, getPackets, getPacketsMissingFromCache, getPacketsNotRetransmitted, getPacketsRetransmitted, getRtt, getSSRC, packetProcessed, rtpPacketCacheMiss, rtpPacketNotRetransmitted, rtpPacketRetransmitted, setJitter, setRtt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBitrate, getBytes, getBytesNotRetransmitted, getBytesRetransmitted, getCurrentBytes, getCurrentPackets, getInterval, getJitter, getPacketRate, getPackets, getPacketsMissingFromCache, getPacketsNotRetransmitted, getPacketsRetransmitted, getRtt, getSSRC
ReceiveTrackStatsImpl(int interval, long ssrc)
interval
- the interval in milliseconds over which average bit- and
packet-rates will be computed.public long getPacketsLost()
getPacketsLost
in interface ReceiveTrackStats
public void rtpPacketReceived(int seq, int length)
seq
- the RTP sequence number of the packet.length
- the length in bytes of the packet.public long getCurrentPacketsLost()
getCurrentPacketsLost
in interface ReceiveTrackStats
public void rtcpPacketReceived(int length)
length
- the length in bytes.public double getLossRate()
getLossRate
in interface TrackStats
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.