public final class InclusiveHEVCVideoSelectionOverride extends java.lang.Object 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 DefaultTrackSelector.SelectionOverride with this information.
If TrackGroup retrived by the track index is either null or empty, SelectionOverrideCreator.EMPTY_SELECTION_OVERRIDE is returned.
EMPTY, EMPTY_SELECTION_OVERRIDE| Modifier and Type | Method and Description |
|---|---|
static InclusiveHEVCVideoSelectionOverride |
create(android.content.Context context)
Creates an instance of InclusiveHEVCVideoSelectionOverride
|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic static InclusiveHEVCVideoSelectionOverride create(@NonNull android.content.Context context)
context - the android context@NonNull
public 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)
SelectionOverrideCreator Creates a DefaultTrackSelector.SelectionOverride based on the
TrackGroup and track index provided.
The TrackGroupArray can be retrieved by calling
MappingTrackSelector.MappedTrackInfo.getTrackGroups(int).
create in interface SelectionOverrideCreatortrackGroups - 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