Class InclusiveHEVCVideoTrackSelectionOverride

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static InclusiveHEVCVideoTrackSelectionOverride create​(android.content.Context context)
      Creates an instance of InclusiveHEVCVideoTrackSelectionOverride
      com.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 a TrackSelectionOverrides.TrackSelectionOverride based on the TrackGroup and track index provided.
      • Methods inherited from class java.lang.Object

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

      • 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: TrackSelectionOverrideCreator

        Creates a TrackSelectionOverrides.TrackSelectionOverride based on the TrackGroup and track index provided.

        The TrackGroupArray can be retrieved by calling MappingTrackSelector.MappedTrackInfo.getTrackGroups(int).

        Specified by:
        create in interface TrackSelectionOverrideCreator
        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
        Returns:
        the Track Selection Override to be set to the DefaultTrackSelector