public final class DashMediaSource
extends com.google.android.exoplayer2.source.BaseMediaSource
MediaSource.| Modifier and Type | Class and Description |
|---|---|
static class |
DashMediaSource.Factory
Factory for
DashMediaSources. |
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_LIVE_PRESENTATION_DELAY_FIXED_MS
Deprecated.
|
static long |
DEFAULT_LIVE_PRESENTATION_DELAY_MS
The default presentation delay for live streams.
|
static long |
DEFAULT_LIVE_PRESENTATION_DELAY_PREFER_MANIFEST_MS
Deprecated.
Use of this parameter is no longer necessary.
|
| Constructor and Description |
|---|
DashMediaSource(DashManifest manifest,
DashChunkSource.Factory chunkSourceFactory,
android.os.Handler eventHandler,
com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
Deprecated.
Use
DashMediaSource.Factory instead. |
DashMediaSource(DashManifest manifest,
DashChunkSource.Factory chunkSourceFactory,
int minLoadableRetryCount,
android.os.Handler eventHandler,
com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
Deprecated.
Use
DashMediaSource.Factory instead. |
DashMediaSource(android.net.Uri manifestUri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory,
DashChunkSource.Factory chunkSourceFactory,
android.os.Handler eventHandler,
com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
Deprecated.
Use
DashMediaSource.Factory instead. |
DashMediaSource(android.net.Uri manifestUri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory,
DashChunkSource.Factory chunkSourceFactory,
int minLoadableRetryCount,
long livePresentationDelayMs,
android.os.Handler eventHandler,
com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
Deprecated.
Use
DashMediaSource.Factory instead. |
DashMediaSource(android.net.Uri manifestUri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory,
com.google.android.exoplayer2.upstream.ParsingLoadable.Parser<? extends DashManifest> manifestParser,
DashChunkSource.Factory chunkSourceFactory,
int minLoadableRetryCount,
long livePresentationDelayMs,
android.os.Handler eventHandler,
com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
Deprecated.
Use
DashMediaSource.Factory instead. |
| Modifier and Type | Method and Description |
|---|---|
com.google.android.exoplayer2.source.MediaPeriod |
createPeriod(com.google.android.exoplayer2.source.MediaSource.MediaPeriodId periodId,
com.google.android.exoplayer2.upstream.Allocator allocator,
long startPositionUs) |
java.lang.Object |
getTag() |
void |
maybeThrowSourceInfoRefreshError() |
void |
prepareSourceInternal(com.google.android.exoplayer2.upstream.TransferListener mediaTransferListener) |
void |
releasePeriod(com.google.android.exoplayer2.source.MediaPeriod mediaPeriod) |
void |
releaseSourceInternal() |
void |
replaceManifestUri(android.net.Uri manifestUri)
Manually replaces the manifest
Uri. |
public static final long DEFAULT_LIVE_PRESENTATION_DELAY_MS
@Deprecated public static final long DEFAULT_LIVE_PRESENTATION_DELAY_FIXED_MS
DEFAULT_LIVE_PRESENTATION_DELAY_MS.@Deprecated public static final long DEFAULT_LIVE_PRESENTATION_DELAY_PREFER_MANIFEST_MS
@Deprecated public DashMediaSource(DashManifest manifest, DashChunkSource.Factory chunkSourceFactory, android.os.Handler eventHandler, com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
DashMediaSource.Factory instead.DashManifest, which must be static.manifest - The manifest. DashManifest.dynamic must be false.chunkSourceFactory - A factory for DashChunkSource instances.eventHandler - A handler for events. May be null if delivery of events is not required.eventListener - A listener of events. May be null if delivery of events is not required.@Deprecated public DashMediaSource(DashManifest manifest, DashChunkSource.Factory chunkSourceFactory, int minLoadableRetryCount, android.os.Handler eventHandler, com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
DashMediaSource.Factory instead.DashManifest, which must be static.manifest - The manifest. DashManifest.dynamic must be false.chunkSourceFactory - A factory for DashChunkSource instances.minLoadableRetryCount - The minimum number of times to retry if a loading error occurs.eventHandler - A handler for events. May be null if delivery of events is not required.eventListener - A listener of events. May be null if delivery of events is not required.@Deprecated
public DashMediaSource(android.net.Uri manifestUri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory,
DashChunkSource.Factory chunkSourceFactory,
android.os.Handler eventHandler,
com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
DashMediaSource.Factory instead.Uri, which may be dynamic or
static.manifestUri - The manifest Uri.manifestDataSourceFactory - A factory for DataSource instances that will be used
to load (and refresh) the manifest.chunkSourceFactory - A factory for DashChunkSource instances.eventHandler - A handler for events. May be null if delivery of events is not required.eventListener - A listener of events. May be null if delivery of events is not required.@Deprecated
public DashMediaSource(android.net.Uri manifestUri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory,
DashChunkSource.Factory chunkSourceFactory,
int minLoadableRetryCount,
long livePresentationDelayMs,
android.os.Handler eventHandler,
com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
DashMediaSource.Factory instead.Uri, which may be dynamic or
static.manifestUri - The manifest Uri.manifestDataSourceFactory - A factory for DataSource instances that will be used
to load (and refresh) the manifest.chunkSourceFactory - A factory for DashChunkSource instances.minLoadableRetryCount - The minimum number of times to retry if a loading error occurs.livePresentationDelayMs - For live playbacks, the duration in milliseconds by which the
default start position should precede the end of the live window. Use DEFAULT_LIVE_PRESENTATION_DELAY_PREFER_MANIFEST_MS to use the value specified by the
manifest, if present.eventHandler - A handler for events. May be null if delivery of events is not required.eventListener - A listener of events. May be null if delivery of events is not required.@Deprecated
public DashMediaSource(android.net.Uri manifestUri,
com.google.android.exoplayer2.upstream.DataSource.Factory manifestDataSourceFactory,
com.google.android.exoplayer2.upstream.ParsingLoadable.Parser<? extends DashManifest> manifestParser,
DashChunkSource.Factory chunkSourceFactory,
int minLoadableRetryCount,
long livePresentationDelayMs,
android.os.Handler eventHandler,
com.google.android.exoplayer2.source.MediaSourceEventListener eventListener)
DashMediaSource.Factory instead.Uri, which may be dynamic or
static.manifestUri - The manifest Uri.manifestDataSourceFactory - A factory for DataSource instances that will be used
to load (and refresh) the manifest.manifestParser - A parser for loaded manifest data.chunkSourceFactory - A factory for DashChunkSource instances.minLoadableRetryCount - The minimum number of times to retry if a loading error occurs.livePresentationDelayMs - For live playbacks, the duration in milliseconds by which the
default start position should precede the end of the live window. Use DEFAULT_LIVE_PRESENTATION_DELAY_PREFER_MANIFEST_MS to use the value specified by the
manifest, if present.eventHandler - A handler for events. May be null if delivery of events is not required.eventListener - A listener of events. May be null if delivery of events is not required.public void replaceManifestUri(android.net.Uri manifestUri)
Uri.manifestUri - The replacement manifest Uri.@Nullable public java.lang.Object getTag()
public void prepareSourceInternal(@Nullable
com.google.android.exoplayer2.upstream.TransferListener mediaTransferListener)
prepareSourceInternal in class com.google.android.exoplayer2.source.BaseMediaSourcepublic void maybeThrowSourceInfoRefreshError()
throws java.io.IOException
java.io.IOExceptionpublic com.google.android.exoplayer2.source.MediaPeriod createPeriod(com.google.android.exoplayer2.source.MediaSource.MediaPeriodId periodId,
com.google.android.exoplayer2.upstream.Allocator allocator,
long startPositionUs)
public void releasePeriod(com.google.android.exoplayer2.source.MediaPeriod mediaPeriod)
public void releaseSourceInternal()
releaseSourceInternal in class com.google.android.exoplayer2.source.BaseMediaSource