@UnstableApi
public final class SlowMotionData implements Metadata.Entry


Holds information about the segments of slow motion playback within a track.

Summary

Nested types

public final class SlowMotionData.Segment

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

Public fields

final List<SlowMotionData.Segment>

Public constructors

Creates an instance with a list of Segments.

Public methods

boolean
int
String

Inherited methods

From androidx.media3.common.Metadata.Entry
@Nullable byte[]

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

@Nullable Format

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

void

Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.

Public fields

segments

public final List<SlowMotionData.Segmentsegments

Public constructors

SlowMotionData

public SlowMotionData(List<SlowMotionData.Segment> segments)

Creates an instance with a list of Segments.

The segments must not overlap, that is that the start time of a segment can not be between the start and end time of another segment.

Public methods

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()

toString

public String toString()