docs/doc/reference/com/google/android/exoplayer2/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder.html
Package com.google.android.exoplayer2.upstream.experimental
Enclosing class:SplitParallelSampleBandwidthEstimator
public static classSplitParallelSampleBandwidthEstimator.Builderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
A builder to create SplitParallelSampleBandwidthEstimator instances.
Constructors | Constructor | Description |
| --- | --- |
| Builder() |
Creates a new builder instance.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| SplitParallelSampleBandwidthEstimator | build() | |
| SplitParallelSampleBandwidthEstimator.Builder | setBandwidthStatistic(BandwidthStatistic bandwidthStatistic) |
Sets the BandwidthStatistic to be used by the estimator.
|
| SplitParallelSampleBandwidthEstimator.Builder | setMinBytesTransferred(long minBytesTransferred) |
Sets a minimum threshold of bytes that need to be transferred before the estimator can return a bandwidth estimate.
|
| SplitParallelSampleBandwidthEstimator.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[SplitParallelSampleBandwidthEstimator.Builder](SplitParallelSampleBandwidthEstimator.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[SplitParallelSampleBandwidthEstimator.Builder](SplitParallelSampleBandwidthEstimator.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[SplitParallelSampleBandwidthEstimator.Builder](SplitParallelSampleBandwidthEstimator.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[SplitParallelSampleBandwidthEstimator](SplitParallelSampleBandwidthEstimator.html "class in com.google.android.exoplayer2.upstream.experimental")build()