Class RemoteBitrateEstimatorWrapper

    • Constructor Detail

      • RemoteBitrateEstimatorWrapper

        public RemoteBitrateEstimatorWrapper​(RemoteBitrateObserver observer,
                                             @NotNull
                                             @NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
        Ctor.
        Parameters:
        observer - the observer to notify on bitrate estimation changes.
        diagnosticContext - the DiagnosticContext to be used by this instance.
    • 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()
        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
      • setMinBitrate

        public void setMinBitrate​(int minBitrateBps)
        Sets the minimum bitrate for this instance.
        Specified by:
        setMinBitrate in interface RemoteBitrateEstimator
        Parameters:
        minBitrateBps - the minimum bitrate in bps.
      • 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 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.
      • setAstExtensionID

        public void setAstExtensionID​(int astExtensionID)
        Sets the ID of the abs-send-time RTP extension. Set to -1 to effectively disable the AST remote bitrate estimator.
        Parameters:
        astExtensionID - the ID to set.
      • receiveSideBweEnabled

        public boolean receiveSideBweEnabled()
        Gets a boolean that indicates whether or not to perform receive-side bandwidth estimations.
        Returns:
        true if receive-side bandwidth estimations are enabled, false otherwise.
      • setSupportsRemb

        public void setSupportsRemb​(boolean supportsRemb)
        Sets the value of the flag which indicates whether the remote end supports RTCP REMB or not.
        Parameters:
        supportsRemb - the value to set.
      • setTccExtensionID

        public void setTccExtensionID​(int tccExtensionID)
        Sets the ID of the transport-cc RTP extension. Anything other than -1 disables receive-side bandwidth estimations.
        Parameters:
        tccExtensionID - the ID to set.