public interface RemoteBitrateEstimator extends CallStatsObserver
Modifier and Type | Field and Description |
---|---|
static int |
kBitrateScale |
static int |
kBitrateWindowMs
webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h
|
static int |
kDefaultMinBitrateBps |
static int |
kProcessIntervalMs |
static int |
kStreamTimeOutMs |
static int |
kTimestampGroupLengthMs |
Modifier and Type | Method and Description |
---|---|
long |
getLatestEstimate()
Returns the estimated payload bitrate in bits per second if a valid
estimate exists; otherwise, -1.
|
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 |
removeStream(long ssrc)
Removes all data for ssrc.
|
void |
setMinBitrate(int minBitrateBps)
Sets the minimum bitrate for this instance.
|
onRttUpdate
static final int kBitrateWindowMs
static final int kBitrateScale
static final int kDefaultMinBitrateBps
static final int kProcessIntervalMs
static final int kStreamTimeOutMs
static final int kTimestampGroupLengthMs
long getLatestEstimate()
java.util.Collection<java.lang.Long> getSsrcs()
void removeStream(long ssrc)
ssrc
- void setMinBitrate(int minBitrateBps)
minBitrateBps
- the minimum bitrate in bps.void incomingPacketInfo(long arrivalTimeMs, long timestamp, int payloadSize, long ssrc)
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.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.