Package com.brightcove.player.render
Interface SelectionOverrideCreator
- All Known Implementing Classes:
InclusiveHEVCVideoSelectionOverride
Deprecated.
A DefaultTrackSelector.SelectionOverride
creator,
that can be set using TrackSelectorHelper.applySelectionOverride(int, SelectionOverrideCreator)
to manually select the track renditions.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SelectionOverrideCreator
Deprecated.Indicates an empty SelectionOverrideCreator.static final com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride
Deprecated.Indicates this is an empty Selection Override. -
Method Summary
Modifier and TypeMethodDescriptiondefault 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) Deprecated.Creates aDefaultTrackSelector.SelectionOverride
based on theTrackGroup
and track index provided.
-
Field Details
-
EMPTY
Deprecated.Indicates an empty SelectionOverrideCreator. Its create method returnsEMPTY_SELECTION_OVERRIDE
-
EMPTY_SELECTION_OVERRIDE
static final com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride EMPTY_SELECTION_OVERRIDEDeprecated.Indicates this is an empty Selection Override. Use this instead of null.
-
-
Method Details
-
create
@Deprecated @NonNull default com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride create(@NonNull com.google.android.exoplayer2.source.TrackGroupArray trackGroups, int trackIndex) Deprecated.Creates a
DefaultTrackSelector.SelectionOverride
based on theTrackGroup
and track index provided.The
TrackGroupArray
can be retrieved by callingMappingTrackSelector.MappedTrackInfo.getTrackGroups(int)
.- Parameters:
trackGroups
- the Track Group Array from the current VideotrackIndex
- the track index of the TrackGroupArray to be impacted.- Returns:
- the Selection Override to be set to the
DefaultTrackSelector
-
create
@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) Deprecated.Creates a
DefaultTrackSelector.SelectionOverride
based on theTrackGroup
and track index provided.The
TrackGroupArray
can be retrieved by callingMappingTrackSelector.MappedTrackInfo.getTrackGroups(int)
.- 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- Returns:
- the Selection Override to be set to the
DefaultTrackSelector
-
TrackSelectionOverrideCreator
instead