createDashChunkSource
DashChunkSource createDashChunkSource(LoaderErrorThrower manifestLoaderErrorThrower,
DashManifest manifest,
int periodIndex,
int[] adaptationSetIndices,
TrackSelection trackSelection,
int type,
long elapsedRealtimeOffsetMs,
boolean enableEventMessageTrack,
boolean enableCea608Track,
@Nullable
PlayerEmsgHandler.PlayerTrackEmsgHandler playerEmsgHandler,
@Nullable
TransferListener transferListener)
- Parameters:
manifestLoaderErrorThrower
- 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.
- Returns:
- The created
DashChunkSource
.