Class TrackSelectionOverrides.TrackSelectionOverride

    • Constructor Detail

      • TrackSelectionOverride

        public TrackSelectionOverride​(TrackGroup trackGroup)
        Constructs an instance to force all tracks in trackGroup to be selected.
      • TrackSelectionOverride

        public TrackSelectionOverride​(TrackGroup trackGroup,
                                      List<Integer> trackIndices)
        Constructs an instance to force trackIndices in trackGroup to be selected.
        Parameters:
        trackGroup - The TrackGroup for which to override the track selection.
        trackIndices - The indices of the tracks in the TrackGroup to select.
    • Method Detail

      • equals

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

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

        public @com.google.android.exoplayer2.C.TrackType int getTrackType()
        Returns the C.TrackType of the overriden track group.
      • 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