Class MediaStreamStats2Impl

    • 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.
      • 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:
        clearSendSsrc in interface MediaStreamStats2
        Parameters:
        ssrc - the ssrc to clear.