public class StatisticsEngine extends SinglePacketTransformer implements TransformEngine
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RTP_STAT_PREFIX
The RTP statistics prefix we use for every log.
|
Constructor and Description |
---|
StatisticsEngine(MediaStreamImpl stream)
Creates Statistic engine.
|
Modifier and Type | Method and Description |
---|---|
double |
getAvgInterArrivalJitter()
Gets the average value of the jitter reported in RTCP packets, in RTP
timestamp units.
|
long |
getMaxInterArrivalJitter()
The minimum inter arrival jitter value we have reported.
|
long |
getMinInterArrivalJitter()
The maximum inter arrival jitter value we have reported.
|
PacketTransformer |
getRTCPTransformer()
Returns a reference to this class since it is performing RTP
transformations in here.
|
PacketTransformer |
getRTPTransformer()
Always returns null since this engine does not require any
RTP transformations.
|
RawPacket |
reverseTransform(RawPacket pkt)
Parses incoming RTCP packets and notifies the
MediaStreamStats of
this instance about the reception of packets with known types (currently
these are RR, SR, XR, REMB, NACK). |
RawPacket |
transform(RawPacket pkt)
Transfers RTCP sender report feedback as new information about the
download stream for the MediaStreamStats.
|
close, reverseTransform, transform
public static final java.lang.String RTP_STAT_PREFIX
public StatisticsEngine(MediaStreamImpl stream)
stream
- the stream creating us.public long getMaxInterArrivalJitter()
public double getAvgInterArrivalJitter()
public long getMinInterArrivalJitter()
public PacketTransformer getRTCPTransformer()
getRTCPTransformer
in interface TransformEngine
public PacketTransformer getRTPTransformer()
getRTPTransformer
in interface TransformEngine
public RawPacket reverseTransform(RawPacket pkt)
MediaStreamStats
of
this instance about the reception of packets with known types (currently
these are RR, SR, XR, REMB, NACK).reverseTransform
in class SinglePacketTransformer
pkt
- the packet to reverse-transformpublic RawPacket transform(RawPacket pkt)
transform
in class SinglePacketTransformer
pkt
- the packet to transform
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.