Back to Exoplayer

DashChunkSource.Factory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/dash/DashChunkSource.Factory.html

latest5.0 KB
Original Source

Package com.google.android.exoplayer2.source.dash

Interface DashChunkSource.Factory

  • All Known Implementing Classes:DefaultDashChunkSource.FactoryEnclosing interface:DashChunkSource

public static interfaceDashChunkSource.Factory

Factory for DashChunkSources.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | DashChunkSource | createDashChunkSource​(LoaderErrorThrower manifestLoaderErrorThrower, DashManifest manifest, BaseUrlExclusionList baseUrlExclusionList, int periodIndex, int[] adaptationSetIndices, ExoTrackSelection trackSelection, @com.google.android.exoplayer2.C.TrackType int trackType, long elapsedRealtimeOffsetMs, boolean enableEventMessageTrack, List<Format> closedCaptionFormats, PlayerEmsgHandler.PlayerTrackEmsgHandler playerEmsgHandler, TransferListener transferListener, PlayerId playerId, CmcdConfiguration cmcdConfiguration) | |

Method Detail

- 

createDashChunkSource

[DashChunkSource](DashChunkSource.html "interface in com.google.android.exoplayer2.source.dash")createDashChunkSource​([LoaderErrorThrower](../../upstream/LoaderErrorThrower.html "interface in com.google.android.exoplayer2.upstream")manifestLoaderErrorThrower,[DashManifest](manifest/DashManifest.html "class in com.google.android.exoplayer2.source.dash.manifest")manifest,[BaseUrlExclusionList](BaseUrlExclusionList.html "class in com.google.android.exoplayer2.source.dash")baseUrlExclusionList,
                                      int periodIndex,
                                      int[] adaptationSetIndices,[ExoTrackSelection](../../trackselection/ExoTrackSelection.html "interface in com.google.android.exoplayer2.trackselection")trackSelection,
                                      @com.google.android.exoplayer2.C.TrackType int trackType,
                                      long elapsedRealtimeOffsetMs,
                                      boolean enableEventMessageTrack,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Format](../../Format.html "class in com.google.android.exoplayer2")> closedCaptionFormats,
                                      @Nullable[PlayerEmsgHandler.PlayerTrackEmsgHandler](PlayerEmsgHandler.PlayerTrackEmsgHandler.html "class in com.google.android.exoplayer2.source.dash")playerEmsgHandler,
                                      @Nullable[TransferListener](../../upstream/TransferListener.html "interface in com.google.android.exoplayer2.upstream")transferListener,[PlayerId](../../analytics/PlayerId.html "class in com.google.android.exoplayer2.analytics")playerId,
                                      @Nullable[CmcdConfiguration](../../upstream/CmcdConfiguration.html "class in com.google.android.exoplayer2.upstream")cmcdConfiguration)

Parameters:manifestLoaderErrorThrower - Throws errors affecting loading of manifests.manifest - The initial manifest.baseUrlExclusionList - The base URL exclusion list.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.trackType - The track type.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. Or C.TIME_UNSET if unknown.enableEventMessageTrack - Whether to output an event message track.closedCaptionFormats - The Formats of closed caption tracks to be output.playerEmsgHandler - The track output to write emsg messages to, or null if emsgs shouldn't be written.transferListener - The transfer listener which should be informed of any data transfers. May be null if no listener is available.playerId - The PlayerId of the player using this chunk source.cmcdConfiguration - The CmcdConfiguration for this chunk source.Returns:The created DashChunkSource.