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,
int trackType,
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,
Period period)
Loads
DrmInitData for a given period in a DASH manifest. |
static DashManifest |
loadManifest(com.google.android.exoplayer2.upstream.DataSource dataSource,
android.net.Uri uri)
Loads a DASH manifest.
|
static com.google.android.exoplayer2.Format |
loadSampleFormat(com.google.android.exoplayer2.upstream.DataSource dataSource,
int trackType,
Representation representation)
Loads initialization data for the
representation and returns the sample Format. |
public static DashManifest loadManifest(com.google.android.exoplayer2.upstream.DataSource dataSource, android.net.Uri uri) throws java.io.IOException
dataSource - The HttpDataSource from which the manifest should be read.uri - The Uri of the manifest to be read.DashManifest.java.io.IOException - Thrown when there is an error while loading.@Nullable
public static com.google.android.exoplayer2.drm.DrmInitData loadDrmInitData(com.google.android.exoplayer2.upstream.DataSource dataSource,
Period period)
throws java.io.IOException,
java.lang.InterruptedException
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.@Nullable
public static com.google.android.exoplayer2.Format loadSampleFormat(com.google.android.exoplayer2.upstream.DataSource dataSource,
int trackType,
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.trackType - The type of the representation. Typically one of the C TRACK_TYPE_* constants.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.@Nullable
public static com.google.android.exoplayer2.extractor.ChunkIndex loadChunkIndex(com.google.android.exoplayer2.upstream.DataSource dataSource,
int trackType,
Representation representation)
throws java.io.IOException,
java.lang.InterruptedException
representation and returns the ChunkIndex.dataSource - The source from which the data should be loaded.trackType - The type of the representation. Typically one of the C TRACK_TYPE_* constants.representation - The representation which initialization chunk belongs to.ChunkIndex of the given representation, or null if no initialization or
index data exists.java.io.IOException - Thrown when there is an error while loading.java.lang.InterruptedException - Thrown if the thread was interrupted.