-
@Deprecated() public interface SelectionOverrideCreator
A com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride creator, that can be set using applySelectionOverride to manually select the track renditions.
-
-
Method Summary
Modifier and Type Method Description DefaultTrackSelector.SelectionOverride
create(@NonNull() TrackGroupArray trackGroups, int trackIndex)
Creates a com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride based on the com.google.android.exoplayer2.source.TrackGroup and track index provided. abstract DefaultTrackSelector.SelectionOverride
create(@NonNull() TrackGroupArray trackGroups, int trackIndex, @Nullable() DefaultTrackSelector.Parameters parameters)
Creates a com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride based on the com.google.android.exoplayer2.source.TrackGroup and track index provided. -
-
Method Detail
-
create
@Deprecated()@NonNull() DefaultTrackSelector.SelectionOverride create(@NonNull() TrackGroupArray trackGroups, int trackIndex)
Creates a com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride based on the com.google.android.exoplayer2.source.TrackGroup and track index provided.
The TrackGroupArray can be retrieved by calling getTrackGroups.
- Parameters:
trackGroups
- the Track Group Array from the current VideotrackIndex
- the track index of the TrackGroupArray to be impacted.
-
create
@NonNull() abstract DefaultTrackSelector.SelectionOverride create(@NonNull() TrackGroupArray trackGroups, int trackIndex, @Nullable() DefaultTrackSelector.Parameters parameters)
Creates a com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride based on the com.google.android.exoplayer2.source.TrackGroup and track index provided.
The TrackGroupArray can be retrieved by calling getTrackGroups.
- Parameters:
trackGroups
- the Track Group Array from the current VideotrackIndex
- the track index of the TrackGroupArray to be impacted.parameters
- it contains the TrackSelector parameters that can further constraint the SelectionOverride
-
-
-
-