public final class

SlowMotionData.Segment

extends java.lang.Object

 java.lang.Object

↳androidx.media3.extractor.metadata.mp4.SlowMotionData.Segment

Overview

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

Summary

Fields
public static final java.util.Comparator<SlowMotionData.Segment>BY_START_THEN_END_THEN_DIVISOR

public static final <any>CREATOR

public final longendTimeMs

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

public final intspeedDivisor

The speed reduction factor.

public final longstartTimeMs

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

Constructors
publicSegment(long startTimeMs, long endTimeMs, int speedDivisor)

Creates an instance.

Methods
public intdescribeContents()

public booleanequals(java.lang.Object o)

public inthashCode()

public java.lang.StringtoString()

public voidwriteToParcel(Parcel dest, int flags)

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Fields

public static final java.util.Comparator<SlowMotionData.Segment> 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 <any> CREATOR

Constructors

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

Creates an instance.

Parameters:

startTimeMs: See SlowMotionData.Segment.startTimeMs. Must be less than endTimeMs.
endTimeMs: See SlowMotionData.Segment.endTimeMs.
speedDivisor: See SlowMotionData.Segment.speedDivisor.

Methods

public java.lang.String toString()

public boolean equals(java.lang.Object o)

public int hashCode()

public int describeContents()

public void writeToParcel(Parcel dest, int flags)