docs/doc/reference/com/google/android/exoplayer2/upstream/experimental/SlidingWeightedAverageBandwidthStatistic.Sample.html
Package com.google.android.exoplayer2.upstream.experimental
Enclosing class:SlidingWeightedAverageBandwidthStatistic
public static classSlidingWeightedAverageBandwidthStatistic.Sampleextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Represents a bandwidth sample.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| long | bitrate |
The sample bitrate.
|
| long | timeAddedMs |
The time this sample was added, in milliseconds.
|
| double | weight |
The sample weight.
|
Constructors | Constructor | Description |
| --- | --- |
| Sample(long bitrate, double weight, long timeAddedMs) |
Creates a new sample.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public final long bitrate
The sample bitrate.
-
public final double weight
The sample weight.
-
public final long timeAddedMs
The time this sample was added, in milliseconds. Timestamps should come from the same source, so that samples can reliably be ordered in time. It is suggested to use Clock.elapsedRealtime().
-
public Sample(long bitrate,
double weight,
long timeAddedMs)
Creates a new sample.