Class SlidingWeightedAverageBandwidthStatistic.Sample
- java.lang.Object
-
- com.google.android.exoplayer2.upstream.experimental.SlidingWeightedAverageBandwidthStatistic.Sample
-
- Enclosing class:
- SlidingWeightedAverageBandwidthStatistic
public static class SlidingWeightedAverageBandwidthStatistic.Sample extends Object
Represents a bandwidth sample.
-
-
Field Summary
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.
-
Constructor Summary
Constructors Constructor Description Sample(long bitrate, double weight, long timeAddedMs)
Creates a new sample.
-
-
-
Field Detail
-
bitrate
public final long bitrate
The sample bitrate.
-
weight
public final double weight
The sample weight.
-
timeAddedMs
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 useClock.elapsedRealtime()
.
-
-