create

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

Creates a DefaultTrackSelector.SelectionOverride based on the TrackGroup and track index provided.

The TrackGroupArray can be retrieved by calling getTrackGroups.

Return

the 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


open fun create(trackGroups: TrackGroupArray, trackIndex: Int): SelectionOverride

Deprecated

Creates a DefaultTrackSelector.SelectionOverride based on the TrackGroup and track index provided.

The TrackGroupArray can be retrieved by calling getTrackGroups.

Return

the Selection Override to be set to the DefaultTrackSelector

Deprecated

Please use create

Parameters

trackGroups

the Track Group Array from the current Video

trackIndex

the track index of the TrackGroupArray to be impacted.