# ChunkIndexProvider

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/ChunkIndexProvider.java+class:androidx.media3.extractor.ChunkIndexProvider)

*** ** * ** ***


```
@UnstableApi
public interface ChunkIndexProvider
```

<br />

*** ** * ** ***

An interface for objects that can provide a `https://developer.android.com/reference/androidx/media3/extractor/ChunkIndex`.

This should be implemented by classes, typically a `https://developer.android.com/reference/androidx/media3/extractor/SeekMap`, that are used in contexts where a `https://developer.android.com/reference/androidx/media3/extractor/ChunkIndex` is required to access sample-level information. For example, chunk sources for adaptive streaming formats like DASH require a `ChunkIndex` to locate samples within a media segment.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/extractor/ChunkIndex` | `https://developer.android.com/reference/androidx/media3/extractor/ChunkIndexProvider#getChunkIndex()()` Returns a `https://developer.android.com/reference/androidx/media3/extractor/ChunkIndex` for use by chunk-based media sources, or `null` if not applicable. |

## Public methods

### getChunkIndex

```
abstract @Nullable ChunkIndex getChunkIndex()
```

Returns a `https://developer.android.com/reference/androidx/media3/extractor/ChunkIndex` for use by chunk-based media sources, or `null` if not applicable.