public static final class MappingTrackSelector.MappedTrackInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
length
The number of renderers to which tracks are mapped.
|
static int |
RENDERER_SUPPORT_EXCEEDS_CAPABILITIES_TRACKS
The renderer has associated tracks and at least one is of a supported type, but all of the
tracks whose types are supported exceed the renderer's capabilities.
|
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_UNSUPPORTED_TRACKS
The renderer has associated tracks, but all are of unsupported types.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAdaptiveSupport(int rendererIndex,
int groupIndex,
boolean includeCapabilitiesExceededTracks)
Returns the extent to which a renderer supports adaptation between supported tracks in a
specified
TrackGroup. |
int |
getAdaptiveSupport(int rendererIndex,
int groupIndex,
int[] trackIndices)
Returns the extent to which a renderer supports adaptation between specified tracks within
a
TrackGroup. |
int |
getRendererSupport(int rendererIndex)
Returns the extent to which a renderer can play the tracks in the track groups mapped to it.
|
int |
getTrackFormatSupport(int rendererIndex,
int groupIndex,
int trackIndex)
Returns the extent to which an individual track is supported by the renderer.
|
TrackGroupArray |
getTrackGroups(int rendererIndex)
Returns the
TrackGroups mapped to the renderer at the specified index. |
int |
getTrackTypeRendererSupport(int trackType)
Returns the best level of support obtained from
getRendererSupport(int) for all
renderers of the specified track type. |
TrackGroupArray |
getUnassociatedTrackGroups()
Returns
TrackGroups not mapped to any renderer. |
public static final int RENDERER_SUPPORT_NO_TRACKS
public static final int RENDERER_SUPPORT_UNSUPPORTED_TRACKS
public static final int RENDERER_SUPPORT_EXCEEDS_CAPABILITIES_TRACKS
public static final int RENDERER_SUPPORT_PLAYABLE_TRACKS
public final int length
public TrackGroupArray getTrackGroups(int rendererIndex)
TrackGroups mapped to the renderer at the specified index.rendererIndex - The renderer index.TrackGroups.public int getRendererSupport(int rendererIndex)
rendererIndex - The renderer index.RENDERER_SUPPORT_PLAYABLE_TRACKS,
RENDERER_SUPPORT_EXCEEDS_CAPABILITIES_TRACKS,
RENDERER_SUPPORT_UNSUPPORTED_TRACKS and RENDERER_SUPPORT_NO_TRACKS.public int getTrackTypeRendererSupport(int trackType)
getRendererSupport(int) for all
renderers of the specified track type. If no renderers exist for the specified type then
RENDERER_SUPPORT_NO_TRACKS is returned.trackType - The track type. One of the C TRACK_TYPE_* constants.RENDERER_SUPPORT_PLAYABLE_TRACKS,
RENDERER_SUPPORT_EXCEEDS_CAPABILITIES_TRACKS,
RENDERER_SUPPORT_UNSUPPORTED_TRACKS and RENDERER_SUPPORT_NO_TRACKS.public int getTrackFormatSupport(int rendererIndex,
int groupIndex,
int trackIndex)
rendererIndex - The renderer index.groupIndex - The index of the track group to which the track belongs.trackIndex - The index of the track within the track group.RendererCapabilities.FORMAT_HANDLED,
RendererCapabilities.FORMAT_EXCEEDS_CAPABILITIES,
RendererCapabilities.FORMAT_UNSUPPORTED_DRM,
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_DRM,
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 track 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 track group.RendererCapabilities.ADAPTIVE_SEAMLESS,
RendererCapabilities.ADAPTIVE_NOT_SEAMLESS and
RendererCapabilities.ADAPTIVE_NOT_SUPPORTED.public TrackGroupArray getUnassociatedTrackGroups()
TrackGroups not mapped to any renderer.