Class RemoteBitrateEstimatorSingleStream

  • All Implemented Interfaces:
    CallStatsObserver, RemoteBitrateEstimator

    public class RemoteBitrateEstimatorSingleStream
    extends Object
    implements RemoteBitrateEstimator
    webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.cc webrtc/modules/remote_bitrate_estimator/remote_bitrate_estimator_single_stream.h
    Author:
    Lyubomir Marinov, George Politis
    • Constructor Detail

      • RemoteBitrateEstimatorSingleStream

        public RemoteBitrateEstimatorSingleStream​(RemoteBitrateObserver observer,
                                                  @NotNull
                                                  @NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
    • Method Detail

      • getLatestEstimate

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

        public Collection<Long> getSsrcs()
        Description copied from interface: RemoteBitrateEstimator
        Returns the estimated payload bitrate in bits per second if a valid estimate exists; otherwise, -1.
        Specified by:
        getSsrcs in interface RemoteBitrateEstimator
        Returns:
        the estimated payload bitrate in bits per seconds if a valid estimate exists; otherwise, -1
      • incomingPacketInfo

        public void incomingPacketInfo​(long arrivalTimeMs,
                                       long timestamp,
                                       int payloadSize,
                                       long ssrc_)
        Notifies this instance of an incoming packet.
        Specified by:
        incomingPacketInfo in interface RemoteBitrateEstimator
        Parameters:
        arrivalTimeMs - the arrival time of the packet in millis.
        timestamp - the RTP timestamp of the packet (RFC3550).
        payloadSize - the payload size of the packet.
        ssrc_ - the SSRC of the packet.
      • setMinBitrate

        public void setMinBitrate​(int minBitrateBps)
        Description copied from interface: RemoteBitrateEstimator
        Sets the minimum bitrate for this instance.
        Specified by:
        setMinBitrate in interface RemoteBitrateEstimator
        Parameters:
        minBitrateBps - the minimum bitrate in bps.