public class

MediaParserChunkExtractor.Factory

extends java.lang.Object

implements ChunkExtractor.Factory

 java.lang.Object

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

Overview

A ChunkExtractor.Factory for MediaParserChunkExtractor instances.

Summary

Constructors
publicFactory()

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

public MediaParserChunkExtractor.FactoryexperimentalParseSubtitlesDuringExtraction(boolean parseSubtitlesDuringExtraction)

public FormatgetOutputTextFormat(Format sourceFormat)

public MediaParserChunkExtractor.FactorysetSubtitleParserFactory(SubtitleParser.Factory subtitleParserFactory)

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

Constructors

public Factory()

Methods

public MediaParserChunkExtractor.Factory setSubtitleParserFactory(SubtitleParser.Factory subtitleParserFactory)

public MediaParserChunkExtractor.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)