# DefaultDashChunkSource.RepresentationHolder

# DefaultDashChunkSource.RepresentationHolder

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/DefaultDashChunkSource.java+class:androidx.media3.exoplayer.dash.DefaultDashChunkSource.RepresentationHolder)

*** ** * ** ***

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

<br />

```
protected class DefaultDashChunkSource.RepresentationHolder
```

<br />

*** ** * ** ***

Holds information about a snapshot of a single[Representation](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Representation).

## Summary

|                                               ### Public functions                                               |
|------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                    | [getFirstAvailableSegmentNum](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#getFirstAvailableSegmentNum(long))`(nowUnixTimeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)`                                                                                                                               |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                    | [getFirstSegmentNum](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#getFirstSegmentNum())`()`                                                                                                                                                                                                                                                   |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                    | [getLastAvailableSegmentNum](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#getLastAvailableSegmentNum(long))`(nowUnixTimeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)`                                                                                                                                 |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                    | [getSegmentCount](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#getSegmentCount())`()`                                                                                                                                                                                                                                                         |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                    | [getSegmentEndTimeUs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#getSegmentEndTimeUs(long))`(segmentNum: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)`                                                                                                                                                  |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                    | [getSegmentNum](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#getSegmentNum(long))`(positionUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)`                                                                                                                                                              |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                    | [getSegmentStartTimeUs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#getSegmentStartTimeUs(long))`(segmentNum: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)`                                                                                                                                              |
| [RangedUri](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/RangedUri)`!` | [getSegmentUrl](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#getSegmentUrl(long))`(segmentNum: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)`                                                                                                                                                              |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                              | [isSegmentAvailableAtFullNetworkSpeed](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#isSegmentAvailableAtFullNetworkSpeed(long,long))`(` ` segmentNum: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` nowPeriodTimeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) `)` |

|                                                   ### Public properties                                                    |
|----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Representation](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Representation)`!` | [representation](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#representation())   |
| [DashSegmentIndex](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashSegmentIndex)`?`      | [segmentIndex](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#segmentIndex())       |
| [BaseUrl](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl)`!`               | [selectedBaseUrl](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.RepresentationHolder#selectedBaseUrl()) |

## Public functions

### getFirstAvailableSegmentNum

```
fun getFirstAvailableSegmentNum(nowUnixTimeUs: Long): Long
```  

### getFirstSegmentNum

```
fun getFirstSegmentNum(): Long
```  

### getLastAvailableSegmentNum

```
fun getLastAvailableSegmentNum(nowUnixTimeUs: Long): Long
```  

### getSegmentCount

```
fun getSegmentCount(): Long
```  

### getSegmentEndTimeUs

```
fun getSegmentEndTimeUs(segmentNum: Long): Long
```  

### getSegmentNum

```
fun getSegmentNum(positionUs: Long): Long
```  

### getSegmentStartTimeUs

```
fun getSegmentStartTimeUs(segmentNum: Long): Long
```  

### getSegmentUrl

```
fun getSegmentUrl(segmentNum: Long): RangedUri!
```  

### isSegmentAvailableAtFullNetworkSpeed

```
fun isSegmentAvailableAtFullNetworkSpeed(
    segmentNum: Long,
    nowPeriodTimeUs: Long
): Boolean
```  

## Public properties

### representation

```
val representation: Representation!
```  

### segmentIndex

```
val segmentIndex: DashSegmentIndex?
```  

### selectedBaseUrl

```
val selectedBaseUrl: BaseUrl!
```