public final class DashUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.android.exoplayer2.extractor.ChunkIndex |
loadChunkIndex(com.google.android.exoplayer2.upstream.DataSource dataSource,
Representation representation)
Loads initialization and index data for the
representation and returns the ChunkIndex. |
static com.google.android.exoplayer2.drm.DrmInitData |
loadDrmInitData(com.google.android.exoplayer2.upstream.DataSource dataSource,
DashManifest dashManifest)
Loads
DrmInitData for a given manifest. |
static com.google.android.exoplayer2.drm.DrmInitData |
loadDrmInitData(com.google.android.exoplayer2.upstream.DataSource dataSource,
Period period)
Loads initialization data for the
representation and returns the sample Format. |
static DashManifest |
loadManifest(com.google.android.exoplayer2.upstream.DataSource dataSource,
java.lang.String manifestUri)
Loads a DASH manifest.
|
static com.google.android.exoplayer2.Format |
loadSampleFormat(com.google.android.exoplayer2.upstream.DataSource dataSource,
Representation representation)
Loads initialization data for the
representation and returns the sample Format. |
public static DashManifest loadManifest(com.google.android.exoplayer2.upstream.DataSource dataSource, java.lang.String manifestUri) throws java.io.IOException
dataSource - The HttpDataSource from which the manifest should be read.manifestUri - The URI of the manifest to be read.DashManifest.java.io.IOException - Thrown when there is an error while loading.public static com.google.android.exoplayer2.drm.DrmInitData loadDrmInitData(com.google.android.exoplayer2.upstream.DataSource dataSource,
DashManifest dashManifest)
throws java.io.IOException,
java.lang.InterruptedException
DrmInitData for a given manifest.dataSource - The HttpDataSource from which data should be loaded.dashManifest - The DashManifest of the DASH content.DrmInitData.java.io.IOExceptionjava.lang.InterruptedExceptionpublic static com.google.android.exoplayer2.drm.DrmInitData loadDrmInitData(com.google.android.exoplayer2.upstream.DataSource dataSource,
Period period)
throws java.io.IOException,
java.lang.InterruptedException
representation and returns the sample Format.
Loads DrmInitData for a given period in a DASH manifest.dataSource - The HttpDataSource from which data should be loaded.period - The Period.DrmInitData, or null if none is defined.java.io.IOException - Thrown when there is an error while loading.java.lang.InterruptedException - Thrown if the thread was interrupted.public static com.google.android.exoplayer2.Format loadSampleFormat(com.google.android.exoplayer2.upstream.DataSource dataSource,
Representation representation)
throws java.io.IOException,
java.lang.InterruptedException
representation and returns the sample Format.dataSource - The source from which the data should be loaded.representation - The representation which initialization chunk belongs to.Format of the given representation.java.io.IOException - Thrown when there is an error while loading.java.lang.InterruptedException - Thrown if the thread was interrupted.public static com.google.android.exoplayer2.extractor.ChunkIndex loadChunkIndex(com.google.android.exoplayer2.upstream.DataSource dataSource,
Representation representation)
throws java.io.IOException,
java.lang.InterruptedException
representation and returns the ChunkIndex.dataSource - The source from which the data should be loaded.representation - The representation which initialization chunk belongs to.ChunkIndex of the given representation.java.io.IOException - Thrown when there is an error while loading.java.lang.InterruptedException - Thrown if the thread was interrupted.