Class ReceiveTrackStatsImpl

    • Method Detail

      • rtpPacketReceived

        public void rtpPacketReceived​(int seq,
                                      int length)
        Notifies this instance that an RTP packet with a given length and sequence number was received.
        Parameters:
        seq - the RTP sequence number of the packet.
        length - the length in bytes of the packet.
      • rtcpPacketReceived

        public void rtcpPacketReceived​(int length)
        Notifies this instance that an RTCP packet with a specific length was received.
        Parameters:
        length - the length in bytes.
      • getLossRate

        public double getLossRate()
        Specified by:
        getLossRate in interface TrackStats
        Returns:
        the loss rate in the last interval.