public class

SplitParallelSampleBandwidthEstimator.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.upstream.experimental.SplitParallelSampleBandwidthEstimator.Builder

Overview

A builder to create SplitParallelSampleBandwidthEstimator instances.

Summary

Constructors
publicBuilder()

Creates a new builder instance.

Methods
public SplitParallelSampleBandwidthEstimatorbuild()

public SplitParallelSampleBandwidthEstimator.BuildersetBandwidthStatistic(BandwidthStatistic bandwidthStatistic)

Sets the BandwidthStatistic to be used by the estimator.

public SplitParallelSampleBandwidthEstimator.BuildersetMinBytesTransferred(long minBytesTransferred)

Sets a minimum threshold of bytes that need to be transferred before the estimator can return a bandwidth estimate.

public SplitParallelSampleBandwidthEstimator.BuildersetMinSamples(int minSamples)

Sets a minimum threshold of samples that need to be taken before the estimator can return a bandwidth estimate.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates a new builder instance.

Methods

public SplitParallelSampleBandwidthEstimator.Builder setBandwidthStatistic(BandwidthStatistic 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.

public SplitParallelSampleBandwidthEstimator.Builder 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.

public SplitParallelSampleBandwidthEstimator.Builder 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.