SlowMotionData.Segment


public final class SlowMotionData.Segment


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

boolean
int
String

Constants

BY_START_THEN_END_THEN_DIVISOR

public static final Comparator<SlowMotionData.SegmentBY_START_THEN_END_THEN_DIVISOR

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

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()

toString

public String toString()