public class

SlidingWeightedAverageBandwidthStatistic.Sample

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.upstream.experimental.SlidingWeightedAverageBandwidthStatistic.Sample

Overview

Represents a bandwidth sample.

Summary

Fields
public final longbitrate

The sample bitrate.

public final longtimeAddedMs

The time this sample was added, in milliseconds.

public final doubleweight

The sample weight.

Constructors
publicSample(long bitrate, double weight, long timeAddedMs)

Creates a new sample.

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

Fields

public final long bitrate

The sample bitrate.

public final double weight

The sample weight.

public final long timeAddedMs

The time this sample was added, in milliseconds. Timestamps should come from the same source, so that samples can reliably be ordered in time. It is suggested to use Clock.elapsedRealtime().

Constructors

public Sample(long bitrate, double weight, long timeAddedMs)

Creates a new sample.