public interface

ChunkExtractor.Factory

 androidx.media3.exoplayer.source.chunk.ChunkExtractor.Factory

Overview

Creates ChunkExtractor instances.

Summary

Methods
public ChunkExtractorcreateProgressiveMediaExtractor(int primaryTrackType, Format representationFormat, boolean enableEventMessageTrack, java.util.List<Format> closedCaptionFormats, TrackOutput playerEmsgTrackOutput, PlayerId playerId)

Returns a new ChunkExtractor instance.

Methods

public ChunkExtractor createProgressiveMediaExtractor(int primaryTrackType, Format representationFormat, boolean enableEventMessageTrack, java.util.List<Format> closedCaptionFormats, TrackOutput playerEmsgTrackOutput, PlayerId playerId)

Returns a new ChunkExtractor instance.

Parameters:

primaryTrackType: The of the primary track.
representationFormat: The format of the representation to extract from.
enableEventMessageTrack: Whether to enable the event message track.
closedCaptionFormats: The Formats of the Closed-Caption tracks.
playerEmsgTrackOutput: The TrackOutput for extracted EMSG messages, or null.
playerId: The PlayerId of the player using this chunk extractor.

Returns:

A new ChunkExtractor instance, or null if not applicable.