docs/doc/reference/com/google/android/exoplayer2/upstream/experimental/CombinedParallelSampleBandwidthEstimator.Builder.html
Package com.google.android.exoplayer2.upstream.experimental
Enclosing class:CombinedParallelSampleBandwidthEstimator
public static classCombinedParallelSampleBandwidthEstimator.Builderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
A builder to create CombinedParallelSampleBandwidthEstimator instances.
Constructors | Constructor | Description |
| --- | --- |
| Builder() |
Creates a new builder instance.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| CombinedParallelSampleBandwidthEstimator | build() | |
| CombinedParallelSampleBandwidthEstimator.Builder | setBandwidthStatistic(BandwidthStatistic bandwidthStatistic) |
Sets the BandwidthStatistic to be used by the estimator.
|
| CombinedParallelSampleBandwidthEstimator.Builder | setMinBytesTransferred(long minBytesTransferred) |
Sets a minimum threshold of bytes that need to be transferred before the estimator can return a bandwidth estimate.
|
| CombinedParallelSampleBandwidthEstimator.Builder | setMinSamples(int minSamples) |
Sets a minimum threshold of samples that need to be taken before the estimator can return a bandwidth estimate.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Builder()
Creates a new builder instance.
-
@CanIgnoreReturnValue
public[CombinedParallelSampleBandwidthEstimator.Builder](CombinedParallelSampleBandwidthEstimator.Builder.html "class in com.google.android.exoplayer2.upstream.experimental")setBandwidthStatistic([BandwidthStatistic](BandwidthStatistic.html "interface in com.google.android.exoplayer2.upstream.experimental")bandwidthStatistic)
Sets the BandwidthStatistic to be used by the estimator. By default, this is set to a SlidingWeightedAverageBandwidthStatistic.
Parameters:bandwidthStatistic - The BandwidthStatistic.Returns:This builder for convenience.
-
@CanIgnoreReturnValue
public[CombinedParallelSampleBandwidthEstimator.Builder](CombinedParallelSampleBandwidthEstimator.Builder.html "class in com.google.android.exoplayer2.upstream.experimental")setMinSamples(int minSamples)
Sets a minimum threshold of samples that need to be taken before the estimator can return a bandwidth estimate. By default, this is set to 0.
Parameters:minSamples - The minimum number of samples.Returns:This builder for convenience.
-
@CanIgnoreReturnValue
public[CombinedParallelSampleBandwidthEstimator.Builder](CombinedParallelSampleBandwidthEstimator.Builder.html "class in com.google.android.exoplayer2.upstream.experimental")setMinBytesTransferred(long minBytesTransferred)
Sets a minimum threshold of bytes that need to be transferred before the estimator can return a bandwidth estimate. By default, this is set to 0.
Parameters:minBytesTransferred - The minimum number of transferred bytes.Returns:This builder for convenience.
-
public[CombinedParallelSampleBandwidthEstimator](CombinedParallelSampleBandwidthEstimator.html "class in com.google.android.exoplayer2.upstream.experimental")build()