ChunkIndexProvider


@UnstableApi
public 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 methods

abstract @Nullable ChunkIndex

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

Public methods

getChunkIndex

abstract @Nullable ChunkIndex getChunkIndex()

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