public static final class MappingTrackSelector.MappedTrackInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
length
Deprecated.
Use
getRendererCount(). |
static int |
RENDERER_SUPPORT_EXCEEDS_CAPABILITIES_TRACKS
The renderer has tracks mapped to it and at least one is of a supported type, but all such
tracks 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 tracks mapped to it, and at least one such track is playable.
|
static int |
RENDERER_SUPPORT_UNSUPPORTED_TRACKS
The renderer has tracks mapped to it, but all are unsupported.
|
| 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 |
getRendererCount()
Returns the number of renderers.
|
int |
getRendererSupport(int rendererIndex)
Returns the extent to which a renderer can play the tracks that are mapped to it.
|
int |
getRendererType(int rendererIndex)
Returns the track type that the renderer at a given index handles.
|
int |
getTrackFormatSupport(int rendererIndex,
int groupIndex,
int trackIndex)
Deprecated.
|
TrackGroupArray |
getTrackGroups(int rendererIndex)
Returns the
TrackGroups mapped to the renderer at the specified index. |
int |
getTrackSupport(int rendererIndex,
int groupIndex,
int trackIndex)
Returns the extent to which an individual track is supported by the renderer.
|
int |
getTrackTypeRendererSupport(int trackType)
Deprecated.
Use
getTypeSupport(int). |
int |
getTypeSupport(int trackType)
Returns the extent to which tracks of a specified type are supported.
|
TrackGroupArray |
getUnassociatedTrackGroups()
Deprecated.
|
TrackGroupArray |
getUnmappedTrackGroups()
Returns
TrackGroups not mapped to any renderer. |
public static final int RENDERER_SUPPORT_NO_TRACKS
public static final int RENDERER_SUPPORT_UNSUPPORTED_TRACKS
getTrackSupport(int, int, int) returns RendererCapabilities.FORMAT_UNSUPPORTED_DRM,
RendererCapabilities.FORMAT_UNSUPPORTED_SUBTYPE or RendererCapabilities.FORMAT_UNSUPPORTED_TYPE for all tracks mapped to the renderer.public static final int RENDERER_SUPPORT_EXCEEDS_CAPABILITIES_TRACKS
getTrackSupport(int, int,
int) returns RendererCapabilities.FORMAT_EXCEEDS_CAPABILITIES for at least one
track mapped to the renderer, but does not return RendererCapabilities.FORMAT_HANDLED for any tracks mapped to the renderer.public static final int RENDERER_SUPPORT_PLAYABLE_TRACKS
getTrackSupport(int, int, int) returns RendererCapabilities.FORMAT_HANDLED for at least one track mapped to the renderer.@Deprecated public final int length
getRendererCount().public int getRendererCount()
public int getRendererType(int rendererIndex)
rendererIndex - The renderer index.TRACK_TYPE_* constants defined in C.Renderer.getTrackType()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.@Deprecated public int getTrackTypeRendererSupport(int trackType)
getTypeSupport(int).public int getTypeSupport(int trackType)
getRendererSupport(int) for all renderers that handle the
specified type. If no such renderers exist 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.@Deprecated
public int getTrackFormatSupport(int rendererIndex,
int groupIndex,
int trackIndex)
getTrackSupport(int, int, int).public int getTrackSupport(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 getTrackSupport(int, int, int) returns RendererCapabilities.FORMAT_HANDLED are always considered. Tracks for which getTrackSupport(int, int, int) returns RendererCapabilities.FORMAT_EXCEEDS_CAPABILITIES are also considered if includeCapabilitiesExceededTracks is set to true. Tracks for which getTrackSupport(int, int, int) returns RendererCapabilities.FORMAT_UNSUPPORTED_DRM,
RendererCapabilities.FORMAT_UNSUPPORTED_TYPE or RendererCapabilities.FORMAT_UNSUPPORTED_SUBTYPE are never considered.
rendererIndex - The renderer index.groupIndex - The index of the track group.includeCapabilitiesExceededTracks - Whether tracks that exceed the capabilities of the
renderer are included when determining support.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.@Deprecated public TrackGroupArray getUnassociatedTrackGroups()
getUnmappedTrackGroups().public TrackGroupArray getUnmappedTrackGroups()
TrackGroups not mapped to any renderer.