public class

CombinedParallelSampleBandwidthEstimator.Builder

extends java.lang.Object

 java.lang.Object

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

Overview

A builder to create CombinedParallelSampleBandwidthEstimator instances.

Summary

Constructors
publicBuilder()

Creates a new builder instance.

Methods
public CombinedParallelSampleBandwidthEstimatorbuild()

public CombinedParallelSampleBandwidthEstimator.BuildersetBandwidthStatistic(BandwidthStatistic bandwidthStatistic)

Sets the BandwidthStatistic to be used by the estimator.

public CombinedParallelSampleBandwidthEstimator.BuildersetMinBytesTransferred(long minBytesTransferred)

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

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