create
Creates an instance of InclusiveHEVCVideoSelectionOverride
Parameters
context
the android context
open 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