public static final class DefaultDashChunkSource.Factory extends java.lang.Object implements DashChunkSource.Factory
| Constructor and Description |
|---|
Factory(com.google.android.exoplayer2.upstream.DataSource.Factory dataSourceFactory) |
Factory(com.google.android.exoplayer2.upstream.DataSource.Factory dataSourceFactory,
int maxSegmentsPerLoad) |
| Modifier and Type | Method and Description |
|---|---|
DashChunkSource |
createDashChunkSource(com.google.android.exoplayer2.upstream.LoaderErrorThrower manifestLoaderErrorThrower,
DashManifest manifest,
int periodIndex,
int[] adaptationSetIndices,
com.google.android.exoplayer2.trackselection.TrackSelection trackSelection,
int trackType,
long elapsedRealtimeOffsetMs,
boolean enableEventMessageTrack,
boolean enableCea608Track,
PlayerEmsgHandler.PlayerTrackEmsgHandler playerEmsgHandler,
com.google.android.exoplayer2.upstream.TransferListener transferListener) |
public Factory(com.google.android.exoplayer2.upstream.DataSource.Factory dataSourceFactory)
public Factory(com.google.android.exoplayer2.upstream.DataSource.Factory dataSourceFactory,
int maxSegmentsPerLoad)
public DashChunkSource createDashChunkSource(com.google.android.exoplayer2.upstream.LoaderErrorThrower manifestLoaderErrorThrower, DashManifest manifest, int periodIndex, int[] adaptationSetIndices, com.google.android.exoplayer2.trackselection.TrackSelection trackSelection, int trackType, long elapsedRealtimeOffsetMs, boolean enableEventMessageTrack, boolean enableCea608Track, @Nullable PlayerEmsgHandler.PlayerTrackEmsgHandler playerEmsgHandler, @Nullable com.google.android.exoplayer2.upstream.TransferListener transferListener)
createDashChunkSource in interface DashChunkSource.FactorymanifestLoaderErrorThrower - Throws errors affecting loading of manifests.manifest - The initial manifest.periodIndex - The index of the corresponding period in the manifest.adaptationSetIndices - The indices of the corresponding adaptation sets in the period.trackSelection - The track selection.elapsedRealtimeOffsetMs - If known, an estimate of the instantaneous difference between
server-side unix time and SystemClock.elapsedRealtime() in milliseconds,
specified as the server's unix time minus the local elapsed time. If unknown, set to 0.enableEventMessageTrack - Whether the chunks generated by the source may output an event
message track.enableCea608Track - Whether the chunks generated by the source may output a CEA-608
track.transferListener - The transfer listener which should be informed of any data transfers.
May be null if no listener is available.DashChunkSource.