Package com.brightcove.player.render
Class InclusiveHEVCVideoTrackSelectionOverride
java.lang.Object
com.brightcove.player.render.InclusiveHEVCVideoTrackSelectionOverride
- All Implemented Interfaces:
TrackSelectionOverrideCreator
public final class InclusiveHEVCVideoTrackSelectionOverride
extends Object
implements TrackSelectionOverrideCreator
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 TrackSelectionOverrides.TrackSelectionOverride with this information.
If TrackGroup retrieved by the track index is either null or empty, TrackSelectionOverrideCreator.EMPTY_TRACK_SELECTION_OVERRIDES is returned.
-
Field Summary
Fields inherited from interface com.brightcove.player.render.TrackSelectionOverrideCreator
EMPTY, EMPTY_TRACK_SELECTION_OVERRIDES -
Method Summary
Modifier and TypeMethodDescriptioncreate(android.content.Context context) Creates an instance of InclusiveHEVCVideoTrackSelectionOverridecom.google.android.exoplayer2.trackselection.TrackSelectionOverrides.TrackSelectionOverridecreate(com.google.android.exoplayer2.source.TrackGroupArray trackGroups, int trackIndex, com.google.android.exoplayer2.trackselection.DefaultTrackSelector.Parameters parameters) Creates aTrackSelectionOverrides.TrackSelectionOverridebased on theTrackGroupand track index provided.
-
Method Details
-
create
public static InclusiveHEVCVideoTrackSelectionOverride create(@NonNull android.content.Context context) Creates an instance of InclusiveHEVCVideoTrackSelectionOverride- Parameters:
context- the android context
-
create
@NonNull public 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) Description copied from interface:TrackSelectionOverrideCreatorCreates a
TrackSelectionOverrides.TrackSelectionOverridebased on theTrackGroupand track index provided.The
TrackGroupArraycan be retrieved by callingMappingTrackSelector.MappedTrackInfo.getTrackGroups(int).- Specified by:
createin interfaceTrackSelectionOverrideCreator- 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
-