public final class

DefaultDashChunkSource.Factory

extends java.lang.Object

implements DashChunkSource.Factory

 java.lang.Object

↳androidx.media3.exoplayer.dash.DefaultDashChunkSource.Factory

Overview

DashChunkSource.Factory for DefaultDashChunkSource instances.

Summary

Constructors
publicFactory(ChunkExtractor.Factory chunkExtractorFactory, DataSource.Factory dataSourceFactory, int maxSegmentsPerLoad)

Creates a new instance.

publicFactory(DataSource.Factory dataSourceFactory)

Equivalent to new Factory(BundledChunkExtractor.FACTORY, dataSourceFactory, maxSegmentsPerLoad = 1).

publicFactory(DataSource.Factory dataSourceFactory, int maxSegmentsPerLoad)

Equivalent to new Factory(BundledChunkExtractor.FACTORY, dataSourceFactory, maxSegmentsPerLoad).

Methods
public DashChunkSourcecreateDashChunkSource(LoaderErrorThrower manifestLoaderErrorThrower, DashManifest manifest, BaseUrlExclusionList baseUrlExclusionList, int periodIndex, int[] adaptationSetIndices[], ExoTrackSelection trackSelection, int trackType, long elapsedRealtimeOffsetMs, boolean enableEventMessageTrack, java.util.List<Format> closedCaptionFormats, PlayerEmsgHandler.PlayerTrackEmsgHandler playerEmsgHandler, TransferListener transferListener, PlayerId playerId, CmcdConfiguration cmcdConfiguration)

public DefaultDashChunkSource.FactoryexperimentalParseSubtitlesDuringExtraction(boolean parseSubtitlesDuringExtraction)

public FormatgetOutputTextFormat(Format sourceFormat)

public DefaultDashChunkSource.FactorysetSubtitleParserFactory(SubtitleParser.Factory subtitleParserFactory)

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

Constructors

public Factory(DataSource.Factory dataSourceFactory)

Equivalent to new Factory(BundledChunkExtractor.FACTORY, dataSourceFactory, maxSegmentsPerLoad = 1).

public Factory(DataSource.Factory dataSourceFactory, int maxSegmentsPerLoad)

Equivalent to new Factory(BundledChunkExtractor.FACTORY, dataSourceFactory, maxSegmentsPerLoad).

public Factory(ChunkExtractor.Factory chunkExtractorFactory, DataSource.Factory dataSourceFactory, int maxSegmentsPerLoad)

Creates a new instance.

Parameters:

chunkExtractorFactory: Creates ChunkExtractor instances to use for extracting chunks.
dataSourceFactory: Creates the DataSource to use for downloading chunks.
maxSegmentsPerLoad: See DefaultDashChunkSource.DefaultDashChunkSource(ChunkExtractor.Factory, LoaderErrorThrower, DashManifest, BaseUrlExclusionList, int, int[], ExoTrackSelection, int, DataSource, long, int, boolean, List, PlayerEmsgHandler.PlayerTrackEmsgHandler, PlayerId, CmcdConfiguration).

Methods

public DefaultDashChunkSource.Factory setSubtitleParserFactory(SubtitleParser.Factory subtitleParserFactory)

public DefaultDashChunkSource.Factory experimentalParseSubtitlesDuringExtraction(boolean parseSubtitlesDuringExtraction)

public DashChunkSource createDashChunkSource(LoaderErrorThrower manifestLoaderErrorThrower, DashManifest manifest, BaseUrlExclusionList baseUrlExclusionList, int periodIndex, int[] adaptationSetIndices[], ExoTrackSelection trackSelection, int trackType, long elapsedRealtimeOffsetMs, boolean enableEventMessageTrack, java.util.List<Format> closedCaptionFormats, PlayerEmsgHandler.PlayerTrackEmsgHandler playerEmsgHandler, TransferListener transferListener, PlayerId playerId, CmcdConfiguration cmcdConfiguration)

public Format getOutputTextFormat(Format sourceFormat)

This implementation delegates determining of the output format to the passed to the constructor of this class.