SlowMotionData.Segment


public final class SlowMotionData.Segment implements Parcelable


Holds information about a single segment of slow motion playback within a track.

Summary

Public fields

final long

The end time, in milliseconds, of the track segment that is intended to be slow motion.

final int

The speed reduction factor.

final long

The start time, in milliseconds, of the track segment that is intended to be slow motion.

Public constructors

Segment(long startTimeMs, long endTimeMs, int speedDivisor)

Creates an instance.

Public methods

int
boolean
int
String
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Constants

BY_START_THEN_END_THEN_DIVISOR

public static final Comparator<SlowMotionData.SegmentBY_START_THEN_END_THEN_DIVISOR

CREATOR

public static final Parcelable.Creator<SlowMotionData.SegmentCREATOR

Public fields

endTimeMs

public final long endTimeMs

The end time, in milliseconds, of the track segment that is intended to be slow motion.

speedDivisor

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.

startTimeMs

public final long startTimeMs

The start time, in milliseconds, of the track segment that is intended to be slow motion.

Public constructors

Segment

public Segment(long startTimeMs, long endTimeMs, int speedDivisor)

Creates an instance.

Parameters
long startTimeMs

See startTimeMs. Must be less than endTimeMs.

long endTimeMs

See endTimeMs.

int speedDivisor

See speedDivisor.

Public methods

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)