Class DefaultTrackSelector.SelectionOverride

    • Field Detail

      • groupIndex

        public final int groupIndex
      • tracks

        public final int[] tracks
      • length

        public final int length
      • type

        public final @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type
    • Constructor Detail

      • SelectionOverride

        public SelectionOverride​(int groupIndex,
                                 int... tracks)
        Constructs a SelectionOverride to override tracks of a group.
        Parameters:
        groupIndex - The overriding track group index.
        tracks - The overriding track indices within the track group.
      • SelectionOverride

        public SelectionOverride​(int groupIndex,
                                 int[] tracks,
                                 @com.google.android.exoplayer2.trackselection.TrackSelection.Type int type)
        Constructs a SelectionOverride of the given type to override tracks of a group.
        Parameters:
        groupIndex - The overriding track group index.
        tracks - The overriding track indices within the track group.
        type - The type that will be returned from TrackSelection.getType().
    • Method Detail

      • containsTrack

        public boolean containsTrack​(int track)
        Returns whether this override contains the specified track index.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class Object
      • toBundle

        public Bundle toBundle()
        Description copied from interface: Bundleable
        Returns a Bundle representing the information stored in this object.
        Specified by:
        toBundle in interface Bundleable