public class MediaStreamStats2Impl extends MediaStreamStatsImpl implements MediaStreamStats2
MediaStreamStatsImpl.StreamDirection
Constructor and Description |
---|
MediaStreamStats2Impl(MediaStreamImpl mediaStream)
Initializes a new
MediaStreamStats2Impl instance. |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends ReceiveTrackStats> |
getAllReceiveStats() |
java.util.Collection<? extends SendTrackStats> |
getAllSendStats() |
ReceiveTrackStats |
getReceiveStats() |
ReceiveTrackStatsImpl |
getReceiveStats(long ssrc) |
SendTrackStats |
getSendStats() |
SendTrackStatsImpl |
getSendStats(long ssrc) |
void |
rtcpPacketReceived(long ssrc,
int length)
Notifies this instance that an RTCP packet with a particular SSRC and
particular length was received.
|
void |
rtcpPacketSent(long ssrc,
int length)
Notifies this instance that an RTCP packet with a particular SSRC and
particular length was sent (or is about to be sent).
|
void |
rtcpReceiverReportReceived(long ssrc,
int fractionLost)
Notifies this instance that an RTCP Receiver Report packet with a
particular SSRC and the given values for total number of lost packets
and extended highest sequence number was received.
|
void |
rtpPacketCacheMiss(long ssrc)
Notifies this instance that the remote endpoint requested retransmission
of a packet with a given SSRC, and it was not found in the local cache.
|
void |
rtpPacketNotRetransmitted(long ssrc,
long length)
Notifies this instance that an RTP packet with a given SSRC and a given
length was not retransmitted (that is, the remote endpoint requested it,
and it was found in the local cache, but it was not retransmitted).
|
void |
rtpPacketReceived(long ssrc,
int seq,
int length)
Notifies this instance that an RTP packet with a particular SSRC,
sequence number and length was received.
|
void |
rtpPacketRetransmitted(long ssrc,
long length)
Notifies this instance that an RTP packet with a given SSRC and a given
length was retransmitted.
|
void |
rtpPacketSent(long ssrc,
int seq,
int length)
Notifies this instance that an RTP packet with a particular SSRC,
sequence number and length was sent (or is about to be sent).
|
void |
updateJitter(long ssrc,
MediaStreamStatsImpl.StreamDirection direction,
double jitter)
Notifies this instance of a new value for the RTP jitter of the stream
in a particular direction.
|
void |
updateRtt(long ssrc,
long rtt)
Notifies this instance of a new value for the round trip time measured
for the associated stream.
|
addRTCPPacketListener, getAvgDownloadJitterMs, getAvgUploadJitterMs, getDownloadJitterMs, getDownloadNbPacketLost, getDownloadPercentLoss, getDownloadRateKiloBitPerSec, getDownloadVideoSize, getEncoding, getEncodingClockRate, getJitterBufferControl, getJitterBufferDelayMs, getJitterBufferDelayPackets, getLocalIPAddress, getLocalPort, getMaxDownloadJitterMs, getMaxUploadJitterMs, getMinDownloadJitterMs, getMinUploadJitterMs, getNbDiscarded, getNbDiscardedFull, getNbDiscardedLate, getNbDiscardedReset, getNbDiscardedShrink, getNbFec, getNbPackets, getNbPacketsLost, getNbPacketsReceived, getNbPacketsSent, getNbReceivedBytes, getNbSentBytes, getPacketQueueCountPackets, getPacketQueueSize, getPercentDiscarded, getRemoteIPAddress, getRemotePort, getRTCPReports, getRttMs, getSendingBitrate, getUploadJitterMs, getUploadNbPacketLost, getUploadPercentLoss, getUploadRateKiloBitPerSec, getUploadVideoSize, isAdaptiveBufferEnabled, nackReceived, rembReceived, removeRTCPPacketListener, srReceived, tccPacketReceived, updateRemoteJitter, updateStats
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRTCPPacketListener, getAvgDownloadJitterMs, getAvgUploadJitterMs, getDownloadJitterMs, getDownloadNbPacketLost, getDownloadPercentLoss, getDownloadRateKiloBitPerSec, getDownloadVideoSize, getEncoding, getEncodingClockRate, getJitterBufferDelayMs, getJitterBufferDelayPackets, getLocalIPAddress, getLocalPort, getMaxDownloadJitterMs, getMaxUploadJitterMs, getMinDownloadJitterMs, getMinUploadJitterMs, getNbDiscarded, getNbDiscardedFull, getNbDiscardedLate, getNbDiscardedReset, getNbDiscardedShrink, getNbFec, getNbPackets, getNbPacketsLost, getNbPacketsReceived, getNbPacketsSent, getNbReceivedBytes, getNbSentBytes, getPacketQueueCountPackets, getPacketQueueSize, getPercentDiscarded, getRemoteIPAddress, getRemotePort, getRTCPReports, getRttMs, getSendingBitrate, getUploadJitterMs, getUploadNbPacketLost, getUploadPercentLoss, getUploadRateKiloBitPerSec, getUploadVideoSize, isAdaptiveBufferEnabled, removeRTCPPacketListener, updateStats
public MediaStreamStats2Impl(MediaStreamImpl mediaStream)
MediaStreamStats2Impl
instance.public void rtpPacketReceived(long ssrc, int seq, int length)
ssrc
- the SSRC of the packet.seq
- the RTP sequence number of the packet.length
- the length in bytes of the packet.public void rtpPacketRetransmitted(long ssrc, long length)
ssrc
- the SSRC of the packet.length
- the length in bytes of the packet.public void rtpPacketNotRetransmitted(long ssrc, long length)
ssrc
- the SSRC of the packet.length
- the length in bytes of the packet.public void rtpPacketCacheMiss(long ssrc)
ssrc
- the SSRC of the requested packet.public void rtpPacketSent(long ssrc, int seq, int length)
ssrc
- the SSRC of the packet.seq
- the RTP sequence number of the packet.length
- the length in bytes of the packet.public void rtcpReceiverReportReceived(long ssrc, int fractionLost)
ssrc
- the SSRC of the packet.fractionLost
- the value of the "fraction lost" field.public void rtcpPacketReceived(long ssrc, int length)
ssrc
- the SSRC of the packet.length
- the length in bytes of the packet.public void rtcpPacketSent(long ssrc, int length)
ssrc
- the SSRC of the packet.length
- the length in bytes of the packet.public void updateJitter(long ssrc, MediaStreamStatsImpl.StreamDirection direction, double jitter)
ssrc
- the SSRC of the stream for which the jitter changed.direction
- whether the jitter is for a received or sent stream.jitter
- the new jitter value in milliseconds.public void updateRtt(long ssrc, long rtt)
ssrc
- the SSRC of the stream for which the jitter changed.rtt
- the new measured RTT in milliseconds.public ReceiveTrackStats getReceiveStats()
getReceiveStats
in interface MediaStreamStats2
MediaStream
in the receive direction.public SendTrackStats getSendStats()
getSendStats
in interface MediaStreamStats2
MediaStream
in the send direction.public ReceiveTrackStatsImpl getReceiveStats(long ssrc)
getReceiveStats
in interface MediaStreamStats2
public SendTrackStatsImpl getSendStats(long ssrc)
getSendStats
in interface MediaStreamStats2
public java.util.Collection<? extends SendTrackStats> getAllSendStats()
getAllSendStats
in interface MediaStreamStats2
public java.util.Collection<? extends ReceiveTrackStats> getAllReceiveStats()
getAllReceiveStats
in interface MediaStreamStats2
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.