public final class

DefaultDashChunkSource.Factory

extends java.lang.Object

implements DashChunkSource.Factory

 java.lang.Object

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

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)

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

Methods

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)