Package com.google.android.exoplayer2
Class MediaItem.ClippingProperties
- java.lang.Object
-
- com.google.android.exoplayer2.MediaItem.ClippingProperties
-
- All Implemented Interfaces:
Bundleable
- Enclosing class:
- MediaItem
public static final class MediaItem.ClippingProperties extends Object implements Bundleable
Optionally clips the media item to a custom start and end position.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description static Bundleable.Creator<MediaItem.ClippingProperties>
CREATOR
Object that can restoreMediaItem.ClippingProperties
from aBundle
.long
endPositionMs
The end position in milliseconds.boolean
relativeToDefaultPosition
WhetherstartPositionMs
andendPositionMs
are relative to the default position.boolean
relativeToLiveWindow
Whether the clipping of active media periods moves with a live window.long
startPositionMs
The start position in milliseconds.boolean
startsAtKeyFrame
Sets whether the start point is guaranteed to be a key frame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
Bundle
toBundle()
Returns aBundle
representing the information stored in this object.
-
-
-
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 orC.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. Iffalse
, playback ends when it reachesendPositionMs
.
-
relativeToDefaultPosition
public final boolean relativeToDefaultPosition
WhetherstartPositionMs
andendPositionMs
are relative to the default position.
-
startsAtKeyFrame
public final boolean startsAtKeyFrame
Sets whether the start point is guaranteed to be a key frame.
-
CREATOR
public static final Bundleable.Creator<MediaItem.ClippingProperties> CREATOR
Object that can restoreMediaItem.ClippingProperties
from aBundle
.
-
-
Method Detail
-
toBundle
public Bundle toBundle()
Description copied from interface:Bundleable
Returns aBundle
representing the information stored in this object.- Specified by:
toBundle
in interfaceBundleable
-
-