Class Player.PositionInfo

  • All Implemented Interfaces:
    Bundleable
    Enclosing interface:
    Player

    public static final class Player.PositionInfo
    extends Object
    implements Bundleable
    Position info describing a playback position involved in a discontinuity.
    • Field Detail

      • windowUid

        @Nullable
        public final Object windowUid
        The UID of the window, or null if the timeline is empty.
      • mediaItemIndex

        public final int mediaItemIndex
        The media item index.
      • mediaItem

        @Nullable
        public final MediaItem mediaItem
        The media item, or null if the timeline is empty.
      • periodUid

        @Nullable
        public final Object periodUid
        The UID of the period, or null if the timeline is empty.
      • periodIndex

        public final int periodIndex
        The period index.
      • positionMs

        public final long positionMs
        The playback position, in milliseconds.
      • adGroupIndex

        public final int adGroupIndex
        The ad group index if the playback position is within an ad, C.INDEX_UNSET otherwise.
      • adIndexInAdGroup

        public final int adIndexInAdGroup
        The index of the ad within the ad group if the playback position is within an ad, C.INDEX_UNSET otherwise.
    • Constructor Detail

      • PositionInfo

        public PositionInfo​(@Nullable
                            Object windowUid,
                            int mediaItemIndex,
                            @Nullable
                            MediaItem mediaItem,
                            @Nullable
                            Object periodUid,
                            int periodIndex,
                            long positionMs,
                            long contentPositionMs,
                            int adGroupIndex,
                            int adIndexInAdGroup)
        Creates an instance.