ExoTrackSelection.Factory


interface ExoTrackSelection.Factory


Factory for ExoTrackSelection instances.

Summary

Public functions

Array<@NullableType ExoTrackSelection!>!
@NullableType
createTrackSelections(
    @NullableType definitions: Array<@NullableType ExoTrackSelection.Definition!>!,
    bandwidthMeter: BandwidthMeter!,
    mediaPeriodId: MediaSource.MediaPeriodId!,
    timeline: Timeline!
)

Creates track selections for the provided Definitions.

Public functions

createTrackSelections

@NullableType
fun createTrackSelections(
    @NullableType definitions: Array<@NullableType ExoTrackSelection.Definition!>!,
    bandwidthMeter: BandwidthMeter!,
    mediaPeriodId: MediaSource.MediaPeriodId!,
    timeline: Timeline!
): Array<@NullableType ExoTrackSelection!>!

Creates track selections for the provided Definitions.

Implementations that create at most one adaptive track selection may use createTrackSelectionsForDefinitions.

Parameters
@NullableType definitions: Array<@NullableType ExoTrackSelection.Definition!>!

A Definition array. May include null values.

bandwidthMeter: BandwidthMeter!

A BandwidthMeter which can be used to select tracks.

mediaPeriodId: MediaSource.MediaPeriodId!

The MediaPeriodId of the period for which tracks are to be selected.

timeline: Timeline!

The Timeline holding the period for which tracks are to be selected.

Returns
Array<@NullableType ExoTrackSelection!>!

The created selections. Must have the same length as definitions and may include null values.