public final class DashUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static ChunkIndex |
loadChunkIndex(DataSource dataSource,
Representation representation)
Loads initialization and index data for the
representation and returns the ChunkIndex. |
static DrmInitData |
loadDrmInitData(DataSource dataSource,
DashManifest dashManifest)
Loads
DrmInitData for a given manifest. |
static DrmInitData |
loadDrmInitData(DataSource dataSource,
Period period)
Loads initialization data for the
representation and returns the sample Format. |
static DashManifest |
loadManifest(DataSource dataSource,
String manifestUri)
Loads a DASH manifest.
|
static Format |
loadSampleFormat(DataSource dataSource,
Representation representation)
Loads initialization data for the
representation and returns the sample Format. |
public static DashManifest loadManifest(DataSource dataSource, String manifestUri) throws IOException
dataSource - The HttpDataSource from which the manifest should be read.manifestUri - The URI of the manifest to be read.DashManifest.IOException - Thrown when there is an error while loading.public static DrmInitData loadDrmInitData(DataSource dataSource, DashManifest dashManifest) throws IOException, InterruptedException
DrmInitData for a given manifest.dataSource - The HttpDataSource from which data should be loaded.dashManifest - The DashManifest of the DASH content.DrmInitData.IOExceptionInterruptedExceptionpublic static DrmInitData loadDrmInitData(DataSource dataSource, Period period) throws IOException, 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.IOException - Thrown when there is an error while loading.InterruptedException - Thrown if the thread was interrupted.public static Format loadSampleFormat(DataSource dataSource, Representation representation) throws IOException, 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.IOException - Thrown when there is an error while loading.InterruptedException - Thrown if the thread was interrupted.public static ChunkIndex loadChunkIndex(DataSource dataSource, Representation representation) throws IOException, 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.IOException - Thrown when there is an error while loading.InterruptedException - Thrown if the thread was interrupted.