Class MediaItem.ClippingProperties

  • All Implemented Interfaces:
    Enclosing class:

    public static final class MediaItem.ClippingProperties
    extends Object
    implements Bundleable
    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)
        equals in class Object
      • hashCode

        public int hashCode()
        hashCode in class Object
      • toBundle

        public Bundle toBundle()
        Description copied from interface: Bundleable
        Returns a Bundle representing the information stored in this object.
        Specified by:
        toBundle in interface Bundleable