docs/doc/reference/com/google/android/exoplayer2/metadata/mp4/SlowMotionData.Segment.html
Package com.google.android.exoplayer2.metadata.mp4
All Implemented Interfaces:ParcelableEnclosing class:SlowMotionData
public static final classSlowMotionData.Segmentextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Parcelable](https://developer.android.com/reference/android/os/Parcelable.html "class or interface in android.os")
Holds information about a single segment of slow motion playback within a track.
-
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static Comparator<SlowMotionData.Segment> | BY_START_THEN_END_THEN_DIVISOR | |
| static Parcelable.Creator<SlowMotionData.Segment> | CREATOR | |
| long | endTimeMs |
The end time, in milliseconds, of the track segment that is intended to be slow motion.
|
| int | speedDivisor |
The speed reduction factor.
|
| long | startTimeMs |
The start time, in milliseconds, of the track segment that is intended to be slow motion.
|
-
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructors | Constructor | Description |
| --- | --- |
| Segment(long startTimeMs, long endTimeMs, int speedDivisor) |
Creates an instance.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| int | describeContents() | |
| boolean | equals(Object o) | |
| int | hashCode() | |
| String | toString() | |
| void | writeToParcel(Parcel dest, int flags) | |
-
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
public static final[Comparator](https://developer.android.com/reference/java/util/Comparator.html "class or interface in java.util")<[SlowMotionData.Segment](SlowMotionData.Segment.html "class in com.google.android.exoplayer2.metadata.mp4")> BY_START_THEN_END_THEN_DIVISOR
-
public final long startTimeMs
The start time, in milliseconds, of the track segment that is intended to be slow motion.
-
public final long endTimeMs
The end time, in milliseconds, of the track segment that is intended to be slow motion.
-
public final int speedDivisor
The speed reduction factor.
For example, 4 would mean the segment should be played at a quarter (1/4) of the normal speed.
-
public static final[Parcelable.Creator](https://developer.android.com/reference/android/os/Parcelable.Creator.html "class or interface in android.os")<[SlowMotionData.Segment](SlowMotionData.Segment.html "class in com.google.android.exoplayer2.metadata.mp4")> CREATOR
-
public Segment(long startTimeMs,
long endTimeMs,
int speedDivisor)
Creates an instance.
Parameters:startTimeMs - See startTimeMs. Must be less than endTimeMs.endTimeMs - See endTimeMs.speedDivisor - See speedDivisor.
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")toString()
Overrides:toString in class Object
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")o)
Overrides:equals in class Object
-
public int hashCode()
Overrides:hashCode in class Object
-
public int describeContents()
Specified by:describeContents in interface Parcelable
-
public void writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html "class or interface in android.os")dest,
int flags)
Specified by:writeToParcel in interface Parcelable