Class StreamKey

  • All Implemented Interfaces:
    Parcelable, Comparable<StreamKey>

    public final class StreamKey
    extends Object
    implements Comparable<StreamKey>, Parcelable
    A key for a subset of media which can be separately loaded (a "stream").

    The stream key consists of a period index, a group index within the period and a track index within the group. The interpretation of these indices depends on the type of media for which the stream key is used.

    • Field Detail

      • periodIndex

        public final int periodIndex
        The period index.
      • groupIndex

        public final int groupIndex
        The group index.
      • trackIndex

        public final int trackIndex
        The track index.
    • Constructor Detail

      • StreamKey

        public StreamKey​(int groupIndex,
                         int trackIndex)
        Parameters:
        groupIndex - The group index.
        trackIndex - The track index.
      • StreamKey

        public StreamKey​(int periodIndex,
                         int groupIndex,
                         int trackIndex)
        Parameters:
        periodIndex - The period index.
        groupIndex - The group index.
        trackIndex - The track index.