# SlowMotionData.Segment

# 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)

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment "View this page in Java")


```
class SlowMotionData.Segment
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Segment](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#Segment(long,long,int))`(startTimeMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, endTimeMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, speedDivisor: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Creates an instance. |

|                                 ### Public functions                                 |
|--------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)  | [equals](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#equals(java.lang.Object))`(o: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#hashCode())`()`                                                                                              |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [toString](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#toString())`()`                                                                                              |

|                             ### Public properties                             |
|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [endTimeMs](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#endTimeMs()) The end time, in milliseconds, of the track segment that is intended to be slow motion.       |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)   | [speedDivisor](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#speedDivisor()) The speed reduction factor.                                                             |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [startTimeMs](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#startTimeMs()) The start time, in milliseconds, of the track segment that is intended to be slow motion. |

## Constants

### BY_START_THEN_END_THEN_DIVISOR

```
const val BY_START_THEN_END_THEN_DIVISOR: Comparator<SlowMotionData.Segment!>!
```  

## Public constructors

### Segment

```
Segment(startTimeMs: Long, endTimeMs: Long, speedDivisor: Int)
```

Creates an instance.  

|                                          Parameters                                          |
|----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `startTimeMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | See [startTimeMs](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#startTimeMs()). Must be less than endTimeMs. |
| `endTimeMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)   | See [endTimeMs](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#endTimeMs()).                                  |
| `speedDivisor: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)  | See [speedDivisor](https://developer.android.com/reference/kotlin/androidx/media3/extractor/metadata/mp4/SlowMotionData.Segment#speedDivisor()).                            |

## Public functions

### equals

```
fun equals(o: Any?): Boolean
```  

### hashCode

```
fun hashCode(): Int
```  

### toString

```
fun toString(): String!
```  

## Public properties

### endTimeMs

```
val endTimeMs: Long
```

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

### speedDivisor

```
val speedDivisor: Int
```

The speed reduction factor.

For example, 4 would mean the segment should be played at a quarter (1/4) of the normal speed.  

### startTimeMs

```
val startTimeMs: Long
```

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