Package org.jitsi.impl.neomedia.stats
Class MediaStreamStats2Impl
- java.lang.Object
-
- org.jitsi.impl.neomedia.MediaStreamStatsImpl
-
- org.jitsi.impl.neomedia.stats.MediaStreamStats2Impl
-
- All Implemented Interfaces:
MediaStreamStats,MediaStreamStats2
public class MediaStreamStats2Impl extends MediaStreamStatsImpl implements MediaStreamStats2
- Author:
- Boris Grozev
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jitsi.impl.neomedia.MediaStreamStatsImpl
MediaStreamStatsImpl.StreamDirection
-
-
Constructor Summary
Constructors Constructor Description MediaStreamStats2Impl(MediaStreamImpl mediaStream)Initializes a newMediaStreamStats2Implinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearSendSsrc(long ssrc)Schedules ssrc for clear from the send stats per ssrc.Collection<? extends ReceiveTrackStats>getAllReceiveStats()Collection<? extends SendTrackStats>getAllSendStats()ReceiveTrackStatsgetReceiveStats()ReceiveTrackStatsImplgetReceiveStats(long ssrc)SendTrackStatsgetSendStats()SendTrackStatsImplgetSendStats(long ssrc)voidremoveReceiveSsrc(long ssrc)Clears ssrc from receiver stats.voidrtcpPacketReceived(long ssrc, int length)Notifies this instance that an RTCP packet with a particular SSRC and particular length was received.voidrtcpPacketSent(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).voidrtcpReceiverReportReceived(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.voidrtpPacketCacheMiss(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.voidrtpPacketNotRetransmitted(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).voidrtpPacketReceived(long ssrc, int seq, int length)Notifies this instance that an RTP packet with a particular SSRC, sequence number and length was received.voidrtpPacketRetransmitted(long ssrc, long length)Notifies this instance that an RTP packet with a given SSRC and a given length was retransmitted.voidrtpPacketSent(long ssrc, int seq, int length, boolean skipStats)Notifies this instance that an RTP packet with a particular SSRC, sequence number and length was sent (or is about to be sent).voidupdateJitter(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.voidupdateRtt(long ssrc, long rtt)Notifies this instance of a new value for the round trip time measured for the associated stream.-
Methods inherited from class org.jitsi.impl.neomedia.MediaStreamStatsImpl
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jitsi.service.neomedia.MediaStreamStats
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
-
-
-
-
Constructor Detail
-
MediaStreamStats2Impl
public MediaStreamStats2Impl(MediaStreamImpl mediaStream)
Initializes a newMediaStreamStats2Implinstance.
-
-
Method Detail
-
rtpPacketReceived
public 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.- Parameters:
ssrc- the SSRC of the packet.seq- the RTP sequence number of the packet.length- the length in bytes of the packet.
-
rtpPacketRetransmitted
public void rtpPacketRetransmitted(long ssrc, long length)Notifies this instance that an RTP packet with a given SSRC and a given length was retransmitted.- Parameters:
ssrc- the SSRC of the packet.length- the length in bytes of the packet.
-
rtpPacketNotRetransmitted
public 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).- Parameters:
ssrc- the SSRC of the packet.length- the length in bytes of the packet.
-
rtpPacketCacheMiss
public 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.- Parameters:
ssrc- the SSRC of the requested packet.
-
rtpPacketSent
public void rtpPacketSent(long ssrc, int seq, int length, boolean skipStats)Notifies this instance that an RTP packet with a particular SSRC, sequence number and length was sent (or is about to be sent).- Parameters:
ssrc- the SSRC of the packet.seq- the RTP sequence number of the packet.length- the length in bytes of the packet.skipStats- whether to skip this packet.
-
rtcpReceiverReportReceived
public 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.- Parameters:
ssrc- the SSRC of the packet.fractionLost- the value of the "fraction lost" field.
-
rtcpPacketReceived
public void rtcpPacketReceived(long ssrc, int length)Notifies this instance that an RTCP packet with a particular SSRC and particular length was received.- Parameters:
ssrc- the SSRC of the packet.length- the length in bytes of the packet.
-
rtcpPacketSent
public 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).- Parameters:
ssrc- the SSRC of the packet.length- the length in bytes of the packet.
-
updateJitter
public 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.- Parameters:
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.
-
updateRtt
public void updateRtt(long ssrc, long rtt)Notifies this instance of a new value for the round trip time measured for the associated stream.- Parameters:
ssrc- the SSRC of the stream for which the jitter changed.rtt- the new measured RTT in milliseconds.
-
getReceiveStats
public ReceiveTrackStats getReceiveStats()
- Specified by:
getReceiveStatsin interfaceMediaStreamStats2- Returns:
- the instance which keeps aggregate statistics for the associated
MediaStreamin the receive direction.
-
getSendStats
public SendTrackStats getSendStats()
- Specified by:
getSendStatsin interfaceMediaStreamStats2- Returns:
- the instance which keeps aggregate statistics for the associated
MediaStreamin the send direction.
-
getReceiveStats
public ReceiveTrackStatsImpl getReceiveStats(long ssrc)
- Specified by:
getReceiveStatsin interfaceMediaStreamStats2- Returns:
- the instance which keeps statistics for a particular SSRC in the receive direction.
-
getSendStats
public SendTrackStatsImpl getSendStats(long ssrc)
- Specified by:
getSendStatsin interfaceMediaStreamStats2- Returns:
- the instance which keeps statistics for a particular SSRC in the send direction.
-
getAllSendStats
public Collection<? extends SendTrackStats> getAllSendStats()
- Specified by:
getAllSendStatsin interfaceMediaStreamStats2- Returns:
- all per-SSRC statistics for the send direction.
-
getAllReceiveStats
public Collection<? extends ReceiveTrackStats> getAllReceiveStats()
- Specified by:
getAllReceiveStatsin interfaceMediaStreamStats2- Returns:
- all per-SSRC statistics for the receive direction.
-
removeReceiveSsrc
public void removeReceiveSsrc(long ssrc)
Clears ssrc from receiver stats.- Parameters:
ssrc- the ssrc to process.
-
clearSendSsrc
public void clearSendSsrc(long ssrc)
Schedules ssrc for clear from the send stats per ssrc.- Specified by:
clearSendSsrcin interfaceMediaStreamStats2- Parameters:
ssrc- the ssrc to clear.
-
-