FakeAdaptiveDataSet.Factory


class FakeAdaptiveDataSet.Factory


Factory for FakeAdaptiveDataSets.

Summary

Public constructors

Factory(
    chunkDurationUs: Long,
    bitratePercentStdDev: Double,
    random: Random!
)

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

Public functions

FakeAdaptiveDataSet!
createDataSet(trackGroup: TrackGroup!, mediaDurationUs: Long)

Returns a new FakeAdaptiveDataSet for the given TrackGroup.

Public constructors

Factory

Factory(
    chunkDurationUs: Long,
    bitratePercentStdDev: Double,
    random: Random!
)

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

Parameters
chunkDurationUs: Long

The chunk duration to use in microseconds.

bitratePercentStdDev: Double

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: Random!

The random number generator used to generate the chunk size variation.

Public functions

createDataSet

fun createDataSet(trackGroup: TrackGroup!, mediaDurationUs: Long): FakeAdaptiveDataSet!

Returns a new FakeAdaptiveDataSet for the given TrackGroup.

Parameters
trackGroup: TrackGroup!

The TrackGroup for which the data set is to be created.

mediaDurationUs: Long

The total duration of the fake data set in microseconds.