Interface RemoteBitrateEstimator

    • Method Detail

      • getLatestEstimate

        long getLatestEstimate()
        Returns the estimated payload bitrate in bits per second if a valid estimate exists; otherwise, -1.
        Returns:
        the estimated payload bitrate in bits per seconds if a valid estimate exists; otherwise, -1
      • getSsrcs

        Collection<Long> getSsrcs()
        Returns the estimated payload bitrate in bits per second if a valid estimate exists; otherwise, -1.
        Returns:
        the estimated payload bitrate in bits per seconds if a valid estimate exists; otherwise, -1
      • removeStream

        void removeStream​(long ssrc)
        Removes all data for ssrc.
        Parameters:
        ssrc -
      • setMinBitrate

        void setMinBitrate​(int minBitrateBps)
        Sets the minimum bitrate for this instance.
        Parameters:
        minBitrateBps - the minimum bitrate in bps.
      • incomingPacketInfo

        void incomingPacketInfo​(long arrivalTimeMs,
                                long timestamp,
                                int payloadSize,
                                long ssrc)
        Notifies this instance of an incoming packet.
        Parameters:
        arrivalTimeMs - the arrival time of the packet in millis.
        timestamp - the 32bit send timestamp of the packet. Note that the specific format depends on the specific implementation.
        payloadSize - the payload size of the packet.
        ssrc - the SSRC of the packet.