Class MappingTrackSelector.MappedTrackInfo

  • Enclosing class:
    MappingTrackSelector

    public static final class MappingTrackSelector.MappedTrackInfo
    extends Object
    Provides mapped track information for each renderer.
    • Method Detail

      • getRendererCount

        public int getRendererCount()
        Returns the number of renderers.
      • getRendererName

        public String 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()
      • getRendererType

        public int getRendererType​(int rendererIndex)
        Returns the track type that the renderer at a given index handles.
        Parameters:
        rendererIndex - The renderer index.
        Returns:
        One of the TRACK_TYPE_* constants defined in C.
        See Also:
        Renderer.getTrackType()
      • getTrackGroups

        public TrackGroupArray getTrackGroups​(int rendererIndex)
        Returns the TrackGroups mapped to the renderer at the specified index.
        Parameters:
        rendererIndex - The renderer index.
        Returns:
        The corresponding TrackGroups.
      • getRendererSupport

        @RendererSupport
        public 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.
      • getTypeSupport

        @RendererSupport
        public int getTypeSupport​(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. One of the C TRACK_TYPE_* constants.
        Returns:
        The MappingTrackSelector.MappedTrackInfo.RendererSupport.
      • getTrackSupport

        @FormatSupport
        public 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.
      • getAdaptiveSupport

        @AdaptiveSupport
        public 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.
        Returns:
        The RendererCapabilities.AdaptiveSupport.