Interface SelectionOverrideCreator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SelectionOverrideCreator EMPTY
      Deprecated.
      Indicates an empty SelectionOverrideCreator.
      static com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride EMPTY_SELECTION_OVERRIDE
      Deprecated.
      Indicates this is an empty Selection Override.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride create​(com.google.android.exoplayer2.source.TrackGroupArray trackGroups, int trackIndex)
      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)
      Deprecated.
      Creates a DefaultTrackSelector.SelectionOverride based on the TrackGroup and track index provided.
    • Field Detail

      • EMPTY_SELECTION_OVERRIDE

        static final com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride EMPTY_SELECTION_OVERRIDE
        Deprecated.
        Indicates this is an empty Selection Override. Use this instead of null.
    • Method Detail

      • create

        @Deprecated
        @NonNull
        default com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride create​(@NonNull
                                                                                                           com.google.android.exoplayer2.source.TrackGroupArray trackGroups,
                                                                                                           int trackIndex)

        Creates a DefaultTrackSelector.SelectionOverride based on the TrackGroup and track index provided.

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

        Parameters:
        trackGroups - the Track Group Array from the current Video
        trackIndex - the track index of the TrackGroupArray to be impacted.
        Returns:
        the Selection Override to be set to the DefaultTrackSelector
      • create

        @NonNull
        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)
        Deprecated.

        Creates a DefaultTrackSelector.SelectionOverride based on the TrackGroup and track index provided.

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

        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 Selection Override to be set to the DefaultTrackSelector