Class RemoteBitrateEstimatorSingleStream
- java.lang.Object
-
- org.jitsi.impl.neomedia.rtp.remotebitrateestimator.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
-
-
Field Summary
-
Fields inherited from interface org.jitsi.service.neomedia.rtp.RemoteBitrateEstimator
kBitrateScale, kBitrateWindowMs, kDefaultMinBitrateBps, kProcessIntervalMs, kStreamTimeOutMs, kTimestampGroupLengthMs
-
-
Constructor Summary
Constructors Constructor Description RemoteBitrateEstimatorSingleStream(RemoteBitrateObserver observer, @NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLatestEstimate()Returns the estimated payload bitrate in bits per second if a valid estimate exists; otherwise, -1.Collection<Long>getSsrcs()Returns the estimated payload bitrate in bits per second if a valid estimate exists; otherwise, -1.voidincomingPacketInfo(long arrivalTimeMs, long timestamp, int payloadSize, long ssrc_)Notifies this instance of an incoming packet.voidonRttUpdate(long avgRttMs, long maxRttMs)voidremoveStream(long ssrc)Removes all data for ssrc.voidsetMinBitrate(int minBitrateBps)Sets the minimum bitrate for this instance.
-
-
-
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:
getLatestEstimatein interfaceRemoteBitrateEstimator- 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:RemoteBitrateEstimatorReturns the estimated payload bitrate in bits per second if a valid estimate exists; otherwise, -1.- Specified by:
getSsrcsin interfaceRemoteBitrateEstimator- 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:
incomingPacketInfoin interfaceRemoteBitrateEstimator- 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.
-
onRttUpdate
public void onRttUpdate(long avgRttMs, long maxRttMs)- Specified by:
onRttUpdatein interfaceCallStatsObserver
-
removeStream
public void removeStream(long ssrc)
Removes all data for ssrc.- Specified by:
removeStreamin interfaceRemoteBitrateEstimator
-
setMinBitrate
public void setMinBitrate(int minBitrateBps)
Description copied from interface:RemoteBitrateEstimatorSets the minimum bitrate for this instance.- Specified by:
setMinBitratein interfaceRemoteBitrateEstimator- Parameters:
minBitrateBps- the minimum bitrate in bps.
-
-