Package org.jitsi.service.neomedia.rtp
Interface RemoteBitrateEstimator
-
- All Superinterfaces:
CallStatsObserver
- All Known Implementing Classes:
RemoteBitrateEstimatorAbsSendTime,RemoteBitrateEstimatorSingleStream,RemoteBitrateEstimatorWrapper
public interface RemoteBitrateEstimator extends CallStatsObserver
webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimator.cc webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimator.h- Author:
- Lyubomir Marinov
-
-
Field Summary
Fields Modifier and Type Field Description static intkBitrateScalestatic intkBitrateWindowMswebrtc/modules/remote_bitrate_estimator/include/bwe_defines.hstatic intkDefaultMinBitrateBpsstatic intkProcessIntervalMsstatic intkStreamTimeOutMsstatic intkTimestampGroupLengthMs
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLatestEstimate()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.voidincomingPacketInfo(long arrivalTimeMs, long timestamp, int payloadSize, long ssrc)Notifies this instance of an incoming packet.voidremoveStream(long ssrc)Removes all data for ssrc.voidsetMinBitrate(int minBitrateBps)Sets the minimum bitrate for this instance.-
Methods inherited from interface org.jitsi.service.neomedia.rtp.CallStatsObserver
onRttUpdate
-
-
-
-
Field Detail
-
kBitrateWindowMs
static final int kBitrateWindowMs
webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h- See Also:
- Constant Field Values
-
kBitrateScale
static final int kBitrateScale
- See Also:
- Constant Field Values
-
kDefaultMinBitrateBps
static final int kDefaultMinBitrateBps
- See Also:
- Constant Field Values
-
kProcessIntervalMs
static final int kProcessIntervalMs
- See Also:
- Constant Field Values
-
kStreamTimeOutMs
static final int kStreamTimeOutMs
- See Also:
- Constant Field Values
-
kTimestampGroupLengthMs
static final int kTimestampGroupLengthMs
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLatestEstimate
long getLatestEstimate()
Returns the estimated payload bitrate in bits per second if a valid estimate exists; otherwise, -1.- Returns:
- the estimated payload bitrate in bits per seconds if a valid estimate exists; otherwise, -1
-
getSsrcs
Collection<Long> getSsrcs()
Returns the estimated payload bitrate in bits per second if a valid estimate exists; otherwise, -1.- Returns:
- the estimated payload bitrate in bits per seconds if a valid estimate exists; otherwise, -1
-
removeStream
void removeStream(long ssrc)
Removes all data for ssrc.- Parameters:
ssrc-
-
setMinBitrate
void setMinBitrate(int minBitrateBps)
Sets the minimum bitrate for this instance.- Parameters:
minBitrateBps- the minimum bitrate in bps.
-
incomingPacketInfo
void incomingPacketInfo(long arrivalTimeMs, long timestamp, int payloadSize, long ssrc)Notifies this instance of an incoming packet.- Parameters:
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.
-
-