# SlowMotionData.Segment

Artifact: [androidx.media3:media3-extractor](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/extractor/metadata/mp4/SlowMotionData.java+class:androidx.media3.extractor.metadata.mp4.SlowMotionData.Segment)

*** ** * ** ***


```
public final class SlowMotionData.Segment
```

<br />

*** ** * ** ***

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

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/java/util/Comparator.html<https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment>` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#BY_START_THEN_END_THEN_DIVISOR()` |

| ### Public fields |
|---|---|
| `final long` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#endTimeMs()` The end time, in milliseconds, of the track segment that is intended to be slow motion. |
| `final int` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#speedDivisor()` The speed reduction factor. |
| `final long` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#startTimeMs()` The start time, in milliseconds, of the track segment that is intended to be slow motion. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#Segment(long,long,int)(long startTimeMs, long endTimeMs, int speedDivisor)` Creates an instance. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html o)` |
| `int` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#hashCode()()` |
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#toString()()` |

## Constants

### BY_START_THEN_END_THEN_DIVISOR

```
public static final Comparator<SlowMotionData.Segment> BY_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 `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#startTimeMs()`. Must be less than endTimeMs. |
| `long endTimeMs` | See `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#endTimeMs()`. |
| `int speedDivisor` | See `https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#speedDivisor()`. |

## Public methods

### equals

```
public boolean equals(@Nullable Object o)
```

### hashCode

```
public int hashCode()
```

### toString

```
public String toString()
```