public interface SelectionOverrideCreator
A DefaultTrackSelector.SelectionOverride
creator,
that can be set using TrackSelectorHelper.applySelectionOverride(int, SelectionOverrideCreator)
to manually select the track renditions.
Modifier and Type | Field and Description |
---|---|
static SelectionOverrideCreator |
EMPTY
Indicates an empty SelectionOverrideCreator.
|
static com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride |
EMPTY_SELECTION_OVERRIDE
Indicates this is an empty Selection Override.
|
Modifier and Type | Method and Description |
---|---|
default com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride |
create(com.google.android.exoplayer2.source.TrackGroupArray trackGroups,
int trackIndex)
Deprecated.
|
com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride |
create(com.google.android.exoplayer2.source.TrackGroupArray trackGroups,
int trackIndex,
com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters parameters)
Creates a
DefaultTrackSelector.SelectionOverride based on the
TrackGroup and track index provided. |
static final SelectionOverrideCreator EMPTY
EMPTY_SELECTION_OVERRIDE
static final com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride EMPTY_SELECTION_OVERRIDE
@Deprecated @NonNull default com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride create(@NonNull com.google.android.exoplayer2.source.TrackGroupArray trackGroups, int trackIndex)
create(TrackGroupArray, int, DefaultTrackSelector.Parameters)
Creates a DefaultTrackSelector.SelectionOverride
based on the
TrackGroup
and track index provided.
The TrackGroupArray
can be retrieved by calling
MappingTrackSelector.MappedTrackInfo.getTrackGroups(int)
.
trackGroups
- the Track Group Array from the current VideotrackIndex
- the track index of the TrackGroupArray to be impacted.DefaultTrackSelector
@NonNull com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride create(@NonNull com.google.android.exoplayer2.source.TrackGroupArray trackGroups, int trackIndex, @Nullable com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters parameters)
Creates a DefaultTrackSelector.SelectionOverride
based on the
TrackGroup
and track index provided.
The TrackGroupArray
can be retrieved by calling
MappingTrackSelector.MappedTrackInfo.getTrackGroups(int)
.
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 SelectionOverrideDefaultTrackSelector