public static final class MappingTrackSelector.MappedTrackInfo extends Object
Modifier and Type | Field and Description |
---|---|
static int |
RENDERER_SUPPORT_NO_TRACKS
The renderer does not have any associated tracks.
|
static int |
RENDERER_SUPPORT_PLAYABLE_TRACKS
The renderer has associated tracks, and can play at least one of them.
|
static int |
RENDERER_SUPPORT_UNPLAYABLE_TRACKS
The renderer has associated tracks, but cannot play any of them.
|
Modifier and Type | Method and Description |
---|---|
int |
getAdaptiveSupport(int rendererIndex,
int groupIndex,
boolean includeCapabilitiesExceededTracks)
Returns the extent to which the renderer supports adaptation between supported tracks in a
specified
TrackGroup . |
int |
getAdaptiveSupport(int rendererIndex,
int groupIndex,
int[] trackIndices)
Returns the extent to which the renderer supports adaptation between specified tracks within
a
TrackGroup . |
int |
getRendererSupport(int rendererIndex)
Returns the extent to which a renderer can support playback of the tracks associated to it.
|
int |
getTrackFormatSupport(int rendererIndex,
int groupIndex,
int trackIndex)
Returns the extent to which the format of an individual track is supported by the renderer.
|
TrackGroupArray |
getTrackGroups(int rendererIndex)
Returns the array of
TrackGroup s associated to the renderer at a specified index. |
TrackGroupArray |
getUnassociatedTrackGroups()
Returns the
TrackGroup s not associated with any renderer. |
boolean |
hasOnlyUnplayableTracks(int trackType)
Returns true if tracks of the specified type exist and have been associated with renderers,
but are all unplayable.
|
public static final int RENDERER_SUPPORT_NO_TRACKS
public static final int RENDERER_SUPPORT_UNPLAYABLE_TRACKS
public static final int RENDERER_SUPPORT_PLAYABLE_TRACKS
public TrackGroupArray getTrackGroups(int rendererIndex)
TrackGroup
s associated to the renderer at a specified index.rendererIndex
- The renderer index.TrackGroup
s.public int getRendererSupport(int rendererIndex)
rendererIndex
- The renderer index.RENDERER_SUPPORT_PLAYABLE_TRACKS
,
RENDERER_SUPPORT_UNPLAYABLE_TRACKS
and RENDERER_SUPPORT_NO_TRACKS
.public int getTrackFormatSupport(int rendererIndex, int groupIndex, int trackIndex)
rendererIndex
- The renderer index.groupIndex
- The index of the group to which the track belongs.trackIndex
- The index of the track within the group.RendererCapabilities.FORMAT_HANDLED
,
RendererCapabilities.FORMAT_EXCEEDS_CAPABILITIES
,
RendererCapabilities.FORMAT_UNSUPPORTED_SUBTYPE
and
RendererCapabilities.FORMAT_UNSUPPORTED_TYPE
.public int getAdaptiveSupport(int rendererIndex, int groupIndex, boolean includeCapabilitiesExceededTracks)
TrackGroup
.
Tracks for which getTrackFormatSupport(int, int, int)
returns
RendererCapabilities.FORMAT_HANDLED
are always considered.
Tracks for which getTrackFormatSupport(int, int, int)
returns
RendererCapabilities.FORMAT_UNSUPPORTED_TYPE
or
RendererCapabilities.FORMAT_UNSUPPORTED_SUBTYPE
are never considered.
Tracks for which getTrackFormatSupport(int, int, int)
returns
RendererCapabilities.FORMAT_EXCEEDS_CAPABILITIES
are considered only if
includeCapabilitiesExceededTracks
is set to true
.
rendererIndex
- The renderer index.groupIndex
- The index of the group.includeCapabilitiesExceededTracks
- True if formats that exceed the capabilities of the
renderer should be included when determining support. False otherwise.RendererCapabilities.ADAPTIVE_SEAMLESS
,
RendererCapabilities.ADAPTIVE_NOT_SEAMLESS
and
RendererCapabilities.ADAPTIVE_NOT_SUPPORTED
.public int getAdaptiveSupport(int rendererIndex, int groupIndex, int[] trackIndices)
TrackGroup
.rendererIndex
- The renderer index.groupIndex
- The index of the group.RendererCapabilities.ADAPTIVE_SEAMLESS
,
RendererCapabilities.ADAPTIVE_NOT_SEAMLESS
and
RendererCapabilities.ADAPTIVE_NOT_SUPPORTED
.public TrackGroupArray getUnassociatedTrackGroups()
TrackGroup
s not associated with any renderer.public boolean hasOnlyUnplayableTracks(int trackType)
trackType
- The track type.