-
- All Implemented Interfaces:
-
com.brightcove.player.render.SelectionOverrideCreator
@Deprecated() public final class InclusiveHEVCVideoSelectionOverride implements SelectionOverrideCreator
Selects all the indices of the Video Formats that has HVC codecs plus any other Format with a different codec and different resolution than the HVC ones.
It then creates a com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride with this information.
If TrackGroup retrived by the track index is either null or empty, EMPTY_SELECTION_OVERRIDE is returned.
-
-
Method Summary
Modifier and Type Method Description static InclusiveHEVCVideoSelectionOverride
create(@NonNull() Context context)
Creates an instance of InclusiveHEVCVideoSelectionOverride 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
static InclusiveHEVCVideoSelectionOverride create(@NonNull() Context context)
Creates an instance of InclusiveHEVCVideoSelectionOverride
- Parameters:
context
- the android context
-
create
@NonNull() 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
-
-
-
-