Class MediaItem.ClippingProperties

  • Enclosing class:
    MediaItem

    public static final class MediaItem.ClippingProperties
    extends Object
    Optionally clips the media item to a custom start and end position.
    • Field Detail

      • startPositionMs

        public final long startPositionMs
        The start position in milliseconds. This is a value larger than or equal to zero.
      • endPositionMs

        public final long endPositionMs
        The end position in milliseconds. This is a value larger than or equal to zero or C.TIME_END_OF_SOURCE to play to the end of the stream.
      • relativeToLiveWindow

        public final boolean relativeToLiveWindow
        Whether the clipping of active media periods moves with a live window. If false, playback ends when it reaches endPositionMs.
      • relativeToDefaultPosition

        public final boolean relativeToDefaultPosition
        Whether startPositionMs and endPositionMs are relative to the default position.
      • startsAtKeyFrame

        public final boolean startsAtKeyFrame
        Sets whether the start point is guaranteed to be a key frame.
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object