ChunkIndexProvider


@UnstableApi
interface ChunkIndexProvider


An interface for objects that can provide a ChunkIndex.

This should be implemented by classes, typically a SeekMap, that are used in contexts where a 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 functions

ChunkIndex?

Returns a ChunkIndex for use by chunk-based media sources, or null if not applicable.

Public functions

getChunkIndex

fun getChunkIndex(): ChunkIndex?

Returns a ChunkIndex for use by chunk-based media sources, or null if not applicable.