public interface

SlidingWeightedAverageBandwidthStatistic.SampleEvictionFunction

 androidx.media3.exoplayer.upstream.experimental.SlidingWeightedAverageBandwidthStatistic.SampleEvictionFunction

Overview

An interface to decide if samples need to be evicted from the estimator.

Summary

Methods
public booleanshouldEvictSample(java.util.Deque<SlidingWeightedAverageBandwidthStatistic.Sample> samples)

Whether the sample at the front of the queue needs to be evicted.

Methods

public boolean shouldEvictSample(java.util.Deque<SlidingWeightedAverageBandwidthStatistic.Sample> samples)

Whether the sample at the front of the queue needs to be evicted. Called before adding a next sample.

Parameters:

samples: A queue of samples, ordered by SlidingWeightedAverageBandwidthStatistic.Sample.timeAddedMs. The oldest sample is at front of the queue. The queue must not be modified.