# SegmentBase.SegmentTimelineElement

# SegmentBase.SegmentTimelineElement

Artifact:[androidx.media3:media3-exoplayer-dash](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/dash/manifest/SegmentBase.java+class:androidx.media3.exoplayer.dash.manifest.SegmentBase.SegmentTimelineElement)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/SegmentBase.SegmentTimelineElement "View this page in Java")

<br />

```
class SegmentBase.SegmentTimelineElement
```

<br />

*** ** * ** ***

Represents a timeline segment from the MPD's SegmentTimeline list.

## Summary

|                                                                                                                                                                            ### Public constructors                                                                                                                                                                             |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SegmentTimelineElement](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/SegmentBase.SegmentTimelineElement#SegmentTimelineElement(long,long))`(startTime: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, duration: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` |

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/SegmentBase.SegmentTimelineElement#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/exoplayer/dash/manifest/SegmentBase.SegmentTimelineElement#hashCode())`()`                                                                                              |

## Public constructors

### SegmentTimelineElement

```
SegmentTimelineElement(startTime: Long, duration: Long)
```  

|                                         Parameters                                         |
|--------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
| `startTime: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The start time of the element. The value in seconds is the division of this value and the`timescale`of the enclosing element. |
| `duration: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)  | The duration of the element. The value in seconds is the division of this value and the`timescale`of the enclosing element.   |

## Public functions

### equals

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

### hashCode

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