ExoTrackSelectionAdaptiveTrackSelection, BaseTrackSelection, FakeTrackSelection, FixedTrackSelection, RandomTrackSelectionpublic interface TrackSelection
TrackGroup.
Tracks belonging to the subset are exposed in decreasing bandwidth order.
| Modifier and Type | Method | Description |
|---|---|---|
Format |
getFormat(int index) |
Returns the format of the track at a given index in the selection.
|
int |
getIndexInTrackGroup(int index) |
Returns the index in the track group of the track at a given index in the selection.
|
TrackGroup |
getTrackGroup() |
Returns the
TrackGroup to which the selected tracks belong. |
int |
indexOf(int indexInTrackGroup) |
Returns the index in the selection of the track with the specified index in the track group.
|
int |
indexOf(Format format) |
Returns the index in the selection of the track with the specified format.
|
int |
length() |
Returns the number of tracks in the selection.
|
TrackGroup getTrackGroup()
TrackGroup to which the selected tracks belong.int length()
Format getFormat(int index)
index - The index in the selection.int getIndexInTrackGroup(int index)
index - The index in the selection.int indexOf(Format format)
selection.indexOf(selection.getFormat(index)) ==
index even if multiple selected tracks have formats that contain the same values.format - The format.C.INDEX_UNSET if the track with the specified
format is not part of the selection.int indexOf(int indexInTrackGroup)
indexInTrackGroup - The index in the track group.C.INDEX_UNSET if the track with the specified
index is not part of the selection.