create

abstract fun create(trackGroups: TrackGroupArray, trackIndex: Int, parameters: Parameters): TrackSelectionOverride

Creates a TrackSelectionOverride based on the TrackGroup and track index provided.

The TrackGroupArray can be retrieved by calling getTrackGroups.

Return

the Track Selection Override to be set to the DefaultTrackSelector

Parameters

trackGroups

the Track Group Array from the current Video

trackIndex

the track index of the TrackGroupArray to be impacted.

parameters

it contains the TrackSelector parameters that can further constraint the SelectionOverride