Back to Exoplayer

SplitParallelSampleBandwidthEstimator.Builder (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/upstream/experimental/SplitParallelSampleBandwidthEstimator.Builder.html

latest4.4 KB
Original Source

Package com.google.android.exoplayer2.upstream.experimental

Class SplitParallelSampleBandwidthEstimator.Builder


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.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | Builder() | Creates a new builder instance. |

Method Summary

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. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

Builder

public Builder()

Creates a new builder instance.

Method Detail

- 

setBandwidthStatistic

@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.

- 

setMinSamples

@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.

- 

setMinBytesTransferred

@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.

- 

build

public[SplitParallelSampleBandwidthEstimator](SplitParallelSampleBandwidthEstimator.html "class in com.google.android.exoplayer2.upstream.experimental")build()