public class RemoteBitrateEstimatorSingleStream extends Object implements RemoteBitrateEstimator
kBitrateScale, kBitrateWindowMs, kDefaultMinBitrateBps, kProcessIntervalMs, kStreamTimeOutMs, kTimestampGroupLengthMs| Constructor and Description |
|---|
RemoteBitrateEstimatorSingleStream(RemoteBitrateObserver observer,
@NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLatestEstimate()
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.
|
void |
incomingPacketInfo(long arrivalTimeMs,
long timestamp,
int payloadSize,
long ssrc_)
Notifies this instance of an incoming packet.
|
void |
onRttUpdate(long avgRttMs,
long maxRttMs) |
void |
removeStream(long ssrc)
Removes all data for ssrc.
|
void |
setMinBitrate(int minBitrateBps)
Sets the minimum bitrate for this instance.
|
public RemoteBitrateEstimatorSingleStream(RemoteBitrateObserver observer, @NotNull @NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
public long getLatestEstimate()
getLatestEstimate in interface RemoteBitrateEstimatorpublic Collection<Long> getSsrcs()
RemoteBitrateEstimatorgetSsrcs in interface RemoteBitrateEstimatorpublic void incomingPacketInfo(long arrivalTimeMs,
long timestamp,
int payloadSize,
long ssrc_)
incomingPacketInfo in interface RemoteBitrateEstimatorarrivalTimeMs - 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.public void onRttUpdate(long avgRttMs,
long maxRttMs)
onRttUpdate in interface CallStatsObserverpublic void removeStream(long ssrc)
removeStream in interface RemoteBitrateEstimatorpublic void setMinBitrate(int minBitrateBps)
RemoteBitrateEstimatorsetMinBitrate in interface RemoteBitrateEstimatorminBitrateBps - the minimum bitrate in bps.Copyright © 2021 jitsi.org. All rights reserved.