Package com.brightcove.player.render
Interface TrackSelectionOverrideCreator
- All Known Implementing Classes:
InclusiveHEVCVideoTrackSelectionOverride
public interface TrackSelectionOverrideCreator
A TrackSelectionOverrides
creator,
that can be set using TrackSelectorHelper.applyTrackSelectionOverrides(int, TrackSelectionOverrideCreator)
to manually select the track renditions.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TrackSelectionOverrideCreator
Indicates an empty TrackSelectionOverrideCreator.static final com.google.android.exoplayer2.trackselection.TrackSelectionOverrides.TrackSelectionOverride
Indicates this is an empty Track Selection Overrides. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.android.exoplayer2.trackselection.TrackSelectionOverrides.TrackSelectionOverride
create
(com.google.android.exoplayer2.source.TrackGroupArray trackGroups, int trackIndex, com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters parameters) Creates aTrackSelectionOverrides.TrackSelectionOverride
based on theTrackGroup
and track index provided.
-
Field Details
-
EMPTY_TRACK_SELECTION_OVERRIDES
static final com.google.android.exoplayer2.trackselection.TrackSelectionOverrides.TrackSelectionOverride EMPTY_TRACK_SELECTION_OVERRIDESIndicates this is an empty Track Selection Overrides. Use this instead of null. -
EMPTY
Indicates an empty TrackSelectionOverrideCreator. Its create method returnsEMPTY_TRACK_SELECTION_OVERRIDES
-
-
Method Details
-
create
@NonNull com.google.android.exoplayer2.trackselection.TrackSelectionOverrides.TrackSelectionOverride create(@NonNull com.google.android.exoplayer2.source.TrackGroupArray trackGroups, int trackIndex, @Nullable com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters parameters) Creates a
TrackSelectionOverrides.TrackSelectionOverride
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 Track Selection Override to be set to the
DefaultTrackSelector
-