public class RemoteBitrateEstimatorWrapper extends SinglePacketTransformerAdapter implements RemoteBitrateEstimator, TransformEngine
RemoteBitrateEstimatorAbsSendTime otherwise it's going to use the
RemoteBitrateEstimatorSingleStream.kBitrateScale, kBitrateWindowMs, kDefaultMinBitrateBps, kProcessIntervalMs, kStreamTimeOutMs, kTimestampGroupLengthMs| Constructor and Description |
|---|
RemoteBitrateEstimatorWrapper(RemoteBitrateObserver observer,
@NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLatestEstimate()
Returns the estimated payload bitrate in bits per second if a valid
estimate exists; otherwise, -1.
|
PacketTransformer |
getRTCPTransformer()
Gets the PacketTransformer for RTCP packets.
|
PacketTransformer |
getRTPTransformer()
Gets the PacketTransformer for RTP packets.
|
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) |
boolean |
receiveSideBweEnabled()
Gets a boolean that indicates whether or not to perform receive-side
bandwidth estimations.
|
void |
removeStream(long ssrc)
Removes all data for ssrc.
|
RawPacket |
reverseTransform(RawPacket pkt)
Reverse-transforms a specific packet.
|
void |
setAstExtensionID(int astExtensionID)
Sets the ID of the abs-send-time RTP extension.
|
void |
setMinBitrate(int minBitrateBps)
Sets the minimum bitrate for this instance.
|
void |
setSupportsRemb(boolean supportsRemb)
Sets the value of the flag which indicates whether the remote end
supports RTCP REMB or not.
|
void |
setTccExtensionID(int tccExtensionID)
Sets the ID of the transport-cc RTP extension.
|
transformclose, reverseTransform, transformpublic RemoteBitrateEstimatorWrapper(RemoteBitrateObserver observer, @NotNull @NotNull org.jitsi.utils.logging.DiagnosticContext diagnosticContext)
observer - the observer to notify on bitrate estimation changes.diagnosticContext - the DiagnosticContext to be used by
this instance.public 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 void incomingPacketInfo(long arrivalTimeMs,
long timestamp,
int payloadSize,
long ssrc)
incomingPacketInfo in interface RemoteBitrateEstimatorarrivalTimeMs - 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.public RawPacket reverseTransform(RawPacket pkt)
reverseTransform in class SinglePacketTransformerAdapterpkt - the transformed packet to be restored.public void onRttUpdate(long avgRttMs,
long maxRttMs)
onRttUpdate in interface CallStatsObserverpublic PacketTransformer getRTPTransformer()
getRTPTransformer in interface TransformEnginepublic PacketTransformer getRTCPTransformer()
getRTCPTransformer in interface TransformEnginepublic void setAstExtensionID(int astExtensionID)
astExtensionID - the ID to set.public boolean receiveSideBweEnabled()
public void setSupportsRemb(boolean supportsRemb)
supportsRemb - the value to set.public void setTccExtensionID(int tccExtensionID)
tccExtensionID - the ID to set.Copyright © 2022 jitsi.org. All rights reserved.