public final class

FakeAdaptiveDataSet.Factory

extends java.lang.Object

 java.lang.Object

↳androidx.media3.test.utils.FakeAdaptiveDataSet.Factory

Overview

Factory for FakeAdaptiveDataSets.

Summary

Constructors
publicFactory(long chunkDurationUs, double bitratePercentStdDev, java.util.Random random)

Set up factory for FakeAdaptiveDataSets with a chunk duration and the standard deviation of the chunk size.

Methods
public FakeAdaptiveDataSetcreateDataSet(TrackGroup trackGroup, long mediaDurationUs)

Returns a new FakeAdaptiveDataSet for the given TrackGroup.

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

Constructors

public Factory(long chunkDurationUs, double bitratePercentStdDev, java.util.Random random)

Set up factory for FakeAdaptiveDataSets with a chunk duration and the standard deviation of the chunk size.

Parameters:

chunkDurationUs: The chunk duration to use in microseconds.
bitratePercentStdDev: The standard deviation used to generate the chunk sizes centered around the average bitrate of the Formats. The standard deviation is given in percent (of the average size).
random: The random number generator used to generate the chunk size variation.

Methods

public FakeAdaptiveDataSet createDataSet(TrackGroup trackGroup, long mediaDurationUs)

Returns a new FakeAdaptiveDataSet for the given TrackGroup.

Parameters:

trackGroup: The TrackGroup for which the data set is to be created.
mediaDurationUs: The total duration of the fake data set in microseconds.