Package 

Class InclusiveHEVCVideoTrackSelectionOverride

  • All Implemented Interfaces:
    com.brightcove.player.render.TrackSelectionOverrideCreator

    
    public final class InclusiveHEVCVideoTrackSelectionOverride
     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 TrackSelectionOverride with this information.

    If TrackGroup retrieved by the track index is either null or empty, EMPTY_TRACK_SELECTION_OVERRIDES is returned.

    • Method Summary

      Modifier and Type Method Description
      static InclusiveHEVCVideoTrackSelectionOverride create(@NonNull() Context context) Creates an instance of InclusiveHEVCVideoTrackSelectionOverride
      TrackSelectionOverride create(@NonNull() TrackGroupArray trackGroups, int trackIndex, @Nullable() DefaultTrackSelector.Parameters parameters) Creates a TrackSelectionOverride based on the com.google.android.exoplayer2.source.TrackGroup and track index provided.
      • Methods inherited from class com.brightcove.player.render.TrackSelectionOverrideCreator

        create
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        @NonNull() TrackSelectionOverride create(@NonNull() TrackGroupArray trackGroups, int trackIndex, @Nullable() DefaultTrackSelector.Parameters parameters)

        Creates a TrackSelectionOverride 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 Video
        trackIndex - the track index of the TrackGroupArray to be impacted.
        parameters - it contains the TrackSelector parameters that can further constraint the SelectionOverride