docs/doc/reference/com/google/android/exoplayer2/trackselection/MappingTrackSelector.MappedTrackInfo.html
Package com.google.android.exoplayer2.trackselection
Enclosing class:MappingTrackSelector
public static final classMappingTrackSelector.MappedTrackInfoextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Provides mapped track information for each renderer.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static interface | MappingTrackSelector.MappedTrackInfo.RendererSupport |
Levels of renderer support.
|
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| 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.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int | getAdaptiveSupport(int rendererIndex, int groupIndex, boolean includeCapabilitiesExceededTracks) |
Returns the extent to which a renderer supports adaptation between supported tracks in a specified TrackGroup.
|
| @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int | getAdaptiveSupport(int rendererIndex, int groupIndex, int[] trackIndices) |
Returns the extent to which a renderer supports adaptation between specified tracks within a TrackGroup.
|
| @com.google.android.exoplayer2.RendererCapabilities.Capabilities int | getCapabilities(int rendererIndex, int groupIndex, int trackIndex) |
Returns the RendererCapabilities.Capabilities of the renderer for an individual track.
|
| int | getRendererCount() |
Returns the number of renderers.
|
| String | getRendererName(int rendererIndex) |
Returns the name of the renderer at a given index.
|
| @com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo.RendererSupport int | getRendererSupport(int rendererIndex) |
Returns the extent to which a renderer can play the tracks that are mapped to it.
|
| @com.google.android.exoplayer2.C.TrackType int | getRendererType(int rendererIndex) |
Returns the track type that the renderer at a given index handles.
|
| TrackGroupArray | getTrackGroups(int rendererIndex) |
Returns the TrackGroups mapped to the renderer at the specified index.
|
| @com.google.android.exoplayer2.C.FormatSupport int | getTrackSupport(int rendererIndex, int groupIndex, int trackIndex) |
Returns the extent to which an individual track is supported by the renderer.
|
| @com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo.RendererSupport int | getTypeSupport(@com.google.android.exoplayer2.C.TrackType int trackType) |
Returns the extent to which tracks of a specified type are supported.
|
| TrackGroupArray | getUnmappedTrackGroups() |
Returns TrackGroups not mapped to any renderer.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final int RENDERER_SUPPORT_NO_TRACKS
The renderer does not have any associated tracks. See Also:Constant Field Values
-
public static final int RENDERER_SUPPORT_UNSUPPORTED_TRACKS
The renderer has tracks mapped to it, but all are unsupported. In other words, getTrackSupport(int, int, int) returns C.FORMAT_UNSUPPORTED_DRM, C.FORMAT_UNSUPPORTED_SUBTYPE or C.FORMAT_UNSUPPORTED_TYPE for all tracks mapped to the renderer.
See Also:Constant Field Values
-
public static final 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. In other words, getTrackSupport(int, int, int) returns C.FORMAT_EXCEEDS_CAPABILITIES for at least one track mapped to the renderer, but does not return C.FORMAT_HANDLED for any tracks mapped to the renderer.
See Also:Constant Field Values
-
public static final int RENDERER_SUPPORT_PLAYABLE_TRACKS
The renderer has tracks mapped to it, and at least one such track is playable. In other words, getTrackSupport(int, int, int) returns C.FORMAT_HANDLED for at least one track mapped to the renderer.
See Also:Constant Field Values
-
public int getRendererCount()
Returns the number of renderers.
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getRendererName(int rendererIndex)
Returns the name of the renderer at a given index.
Parameters:rendererIndex - The renderer index.Returns:The name of the renderer.See Also:Renderer.getName()
-
public @com.google.android.exoplayer2.C.TrackType int getRendererType(int rendererIndex)
Returns the track type that the renderer at a given index handles.
Parameters:rendererIndex - The renderer index.Returns:The C.TrackType of the renderer.See Also:Renderer.getTrackType()
-
public[TrackGroupArray](../source/TrackGroupArray.html "class in com.google.android.exoplayer2.source")getTrackGroups(int rendererIndex)
Returns the TrackGroups mapped to the renderer at the specified index.
Parameters:rendererIndex - The renderer index.Returns:The corresponding TrackGroups.
-
[@RendererSupport](MappingTrackSelector.MappedTrackInfo.RendererSupport.html "annotation in com.google.android.exoplayer2.trackselection")public @com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo.RendererSupport int getRendererSupport(int rendererIndex)
Returns the extent to which a renderer can play the tracks that are mapped to it.
Parameters:rendererIndex - The renderer index.Returns:The MappingTrackSelector.MappedTrackInfo.RendererSupport.
-
[@RendererSupport](MappingTrackSelector.MappedTrackInfo.RendererSupport.html "annotation in com.google.android.exoplayer2.trackselection")public @com.google.android.exoplayer2.trackselection.MappingTrackSelector.MappedTrackInfo.RendererSupport int getTypeSupport(@com.google.android.exoplayer2.C.TrackType int trackType)
Returns the extent to which tracks of a specified type are supported. This is the best level of support obtained from getRendererSupport(int) for all renderers that handle the specified type. If no such renderers exist then RENDERER_SUPPORT_NO_TRACKS is returned.
Parameters:trackType - The track type.Returns:The MappingTrackSelector.MappedTrackInfo.RendererSupport.
-
public @com.google.android.exoplayer2.RendererCapabilities.Capabilities int getCapabilities(int rendererIndex,
int groupIndex,
int trackIndex)
Returns the RendererCapabilities.Capabilities of the renderer for an individual track.
Parameters: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.Returns:The RendererCapabilities.Capabilities.
-
[@FormatSupport](../C.FormatSupport.html "annotation in com.google.android.exoplayer2")public @com.google.android.exoplayer2.C.FormatSupport int getTrackSupport(int rendererIndex,
int groupIndex,
int trackIndex)
Returns the extent to which an individual track is supported by the renderer.
Parameters: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.Returns:The C.FormatSupport.
-
public @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int getAdaptiveSupport(int rendererIndex,
int groupIndex,
boolean includeCapabilitiesExceededTracks)
Returns the extent to which a renderer supports adaptation between supported tracks in a specified TrackGroup.
Tracks for which getTrackSupport(int, int, int) returns C.FORMAT_HANDLED are always considered. Tracks for which getTrackSupport(int, int, int) returns C.FORMAT_EXCEEDS_CAPABILITIES are also considered if includeCapabilitiesExceededTracks is set to true. Tracks for which getTrackSupport(int, int, int) returns C.FORMAT_UNSUPPORTED_DRM, C.FORMAT_UNSUPPORTED_TYPE or C.FORMAT_UNSUPPORTED_SUBTYPE are never considered.
Parameters: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.Returns:The RendererCapabilities.AdaptiveSupport.
-
public @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int getAdaptiveSupport(int rendererIndex,
int groupIndex,
int[] trackIndices)
Returns the extent to which a renderer supports adaptation between specified tracks within a TrackGroup.
Parameters:rendererIndex - The renderer index.groupIndex - The index of the track group.trackIndices - The indices of the tracks in the track group for which to query support.Returns:The RendererCapabilities.AdaptiveSupport.
-
public[TrackGroupArray](../source/TrackGroupArray.html "class in com.google.android.exoplayer2.source")getUnmappedTrackGroups()
Returns TrackGroups not mapped to any renderer.