public class RemoteBitrateEstimatorWrapper extends SinglePacketTransformerAdapter implements RemoteBitrateEstimator, TransformEngine
RemoteBitrateEstimatorAbsSendTime
otherwise it's going to use the
RemoteBitrateEstimatorSingleStream
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENABLE_AST_RBE_PNAME
The name of the property that determines whether or not to activate the
abs-send-time remote bitrate estimator.
|
kBitrateScale, kBitrateWindowMs, kDefaultMinBitrateBps, kProcessIntervalMs, kStreamTimeOutMs, kTimestampGroupLengthMs
Constructor and Description |
---|
RemoteBitrateEstimatorWrapper(RemoteBitrateObserver observer,
@NotNull 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.
|
java.util.Collection<java.lang.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.
|
transform
close, reverseTransform, transform
public static final java.lang.String ENABLE_AST_RBE_PNAME
public RemoteBitrateEstimatorWrapper(RemoteBitrateObserver observer, @NotNull @NotNull 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 RemoteBitrateEstimator
public java.util.Collection<java.lang.Long> getSsrcs()
getSsrcs
in interface RemoteBitrateEstimator
public void removeStream(long ssrc)
removeStream
in interface RemoteBitrateEstimator
public void setMinBitrate(int minBitrateBps)
setMinBitrate
in interface RemoteBitrateEstimator
minBitrateBps
- the minimum bitrate in bps.public void incomingPacketInfo(long arrivalTimeMs, long timestamp, int payloadSize, long ssrc)
incomingPacketInfo
in interface RemoteBitrateEstimator
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.public RawPacket reverseTransform(RawPacket pkt)
reverseTransform
in class SinglePacketTransformerAdapter
pkt
- the transformed packet to be restored.public void onRttUpdate(long avgRttMs, long maxRttMs)
onRttUpdate
in interface CallStatsObserver
public PacketTransformer getRTPTransformer()
getRTPTransformer
in interface TransformEngine
public PacketTransformer getRTCPTransformer()
getRTCPTransformer
in interface TransformEngine
public 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.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.