public final class

BundledChunkExtractor.Factory

extends java.lang.Object

implements ChunkExtractor.Factory

 java.lang.Object

↳androidx.media3.exoplayer.source.chunk.BundledChunkExtractor.Factory

Overview

ChunkExtractor.Factory for BundledChunkExtractor.

Summary

Constructors
publicFactory()

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

public BundledChunkExtractor.FactoryexperimentalParseSubtitlesDuringExtraction(boolean parseSubtitlesDuringExtraction)

public BundledChunkExtractor.FactoryexperimentalParseWithinGopSampleDependencies(boolean parseWithinGopSampleDependencies)

Sets whether within GOP sample dependency information should be parsed as part of extraction.

public FormatgetOutputTextFormat(Format sourceFormat)

public BundledChunkExtractor.FactorysetSubtitleParserFactory(SubtitleParser.Factory subtitleParserFactory)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Factory()

Methods

public BundledChunkExtractor.Factory setSubtitleParserFactory(SubtitleParser.Factory subtitleParserFactory)

public BundledChunkExtractor.Factory experimentalParseSubtitlesDuringExtraction(boolean parseSubtitlesDuringExtraction)

public Format getOutputTextFormat(Format sourceFormat)

This implementation performs transcoding of the original format to MimeTypes.APPLICATION_MEDIA3_CUES if it is supported by .

To modify the support behavior, you can set your own subtitle parser factory.

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

public BundledChunkExtractor.Factory experimentalParseWithinGopSampleDependencies(boolean parseWithinGopSampleDependencies)

Sets whether within GOP sample dependency information should be parsed as part of extraction. Defaults to false.

Having access to additional sample dependency information can speed up seeking. See FragmentedMp4Extractor.FLAG_READ_WITHIN_GOP_SAMPLE_DEPENDENCIES.

This method is experimental and will be renamed or removed in a future release.

Parameters:

parseWithinGopSampleDependencies: Whether to parse within GOP sample dependencies during extraction.

Returns:

This factory, for convenience.