public static final class MappingTrackSelector.SelectionOverride extends Object
Modifier and Type | Field and Description |
---|---|
TrackSelection.Factory |
factory |
int |
groupIndex |
int |
length |
int[] |
tracks |
Constructor and Description |
---|
SelectionOverride(TrackSelection.Factory factory,
int groupIndex,
int... tracks) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsTrack(int track)
Returns whether this override contains the specified track index.
|
TrackSelection |
createTrackSelection(TrackGroupArray groups)
Creates an selection from this override.
|
public final TrackSelection.Factory factory
public final int groupIndex
public final int[] tracks
public final int length
public SelectionOverride(TrackSelection.Factory factory, int groupIndex, int... tracks)
factory
- A factory for creating selections from this override.groupIndex
- The overriding group index.tracks
- The overriding track indices within the group.public TrackSelection createTrackSelection(TrackGroupArray groups)
groups
- The groups whose selection is being overridden.public boolean containsTrack(int track)