Class BandwidthEstimator
Estimates the bitrate a received stream may have from its loss, report by report, as loss-based congestion control does: down by a part when much is lost, up slowly while little is.
Inherited Members
Namespace: Uniform.Matrix.WebRtc.Rtp
Assembly: Uniform.Matrix.WebRtc.dll
Syntax
public sealed class BandwidthEstimator
Constructors
| Edit this page View SourceBandwidthEstimator(long, long, long)
Estimates the bitrate a received stream may have from its loss, report by report, as loss-based congestion control does: down by a part when much is lost, up slowly while little is.
Declaration
public BandwidthEstimator(long start = 1500000, long minimum = 150000, long maximum = 2500000)
Parameters
| Type | Name | Description |
|---|---|---|
| long | start | The estimate before any report, in bits per second. |
| long | minimum | The lowest estimate. |
| long | maximum | The highest estimate. |
Properties
| Edit this page View SourceBitrate
The estimate, in bits per second.
Declaration
public long Bitrate { get; }
Property Value
| Type | Description |
|---|---|
| long |
Methods
| Edit this page View SourceUpdate(byte)
Take a report interval's loss, fractionLost in 256ths; return the new estimate.
Declaration
public long Update(byte fractionLost)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | fractionLost |
Returns
| Type | Description |
|---|---|
| long |