public class RemoteBitrateEstimatorAbsSendTime extends Object implements RemoteBitrateEstimator
kBitrateScale, kBitrateWindowMs, kDefaultMinBitrateBps, kProcessIntervalMs, kStreamTimeOutMs| Constructor and Description |
|---|
RemoteBitrateEstimatorAbsSendTime(RemoteBitrateObserver observer,
@NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
convertMsTo24Bits(long timeMs)
Converts rtp timestamps to 24bit timestamp equivalence
|
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 sendTime24bits,
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 RemoteBitrateEstimatorAbsSendTime(RemoteBitrateObserver observer, @NotNull @NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
observer - the observer to notify on bitrate estimation changes.diagnosticContext - the DiagnosticContext of this instance.public void incomingPacketInfo(long arrivalTimeMs,
long sendTime24bits,
int payloadSize,
long ssrc)
incomingPacketInfo in interface RemoteBitrateEstimatorarrivalTimeMs - the arrival time of the packet in millis.sendTime24bits - the send time of the packet in AST format
(24 bits, 6.18 fixed point).payloadSize - the payload size of the packet.ssrc - the SSRC of the packet.public void onRttUpdate(long avgRttMs,
long maxRttMs)
onRttUpdate in interface CallStatsObserverpublic long getLatestEstimate()
getLatestEstimate in interface RemoteBitrateEstimatorpublic Collection<Long> getSsrcs()
getSsrcs in interface RemoteBitrateEstimatorpublic void removeStream(long ssrc)
removeStream in interface RemoteBitrateEstimatorpublic void setMinBitrate(int minBitrateBps)
setMinBitrate in interface RemoteBitrateEstimatorminBitrateBps - the minimum bitrate in bps.public static long convertMsTo24Bits(long timeMs)
timeMs - is the RTP timestamp e.g System.currentTimeMillis().Copyright © 2022 jitsi.org. All rights reserved.