Search in sources :

Example 6 with RangedUri

use of com.google.android.exoplayer2.source.dash.manifest.RangedUri in project ExoPlayer by google.

the class DashUtil method loadInitializationData.

private static void loadInitializationData(DataSource dataSource, Representation representation, ChunkExtractorWrapper extractorWrapper, RangedUri requestUri) throws IOException, InterruptedException {
    DataSpec dataSpec = new DataSpec(requestUri.resolveUri(representation.baseUrl), requestUri.start, requestUri.length, representation.getCacheKey());
    InitializationChunk initializationChunk = new InitializationChunk(dataSource, dataSpec, representation.format, C.SELECTION_REASON_UNKNOWN, null, /* trackSelectionData */
    extractorWrapper);
    initializationChunk.load();
}
Also used : InitializationChunk(com.google.android.exoplayer2.source.chunk.InitializationChunk) DataSpec(com.google.android.exoplayer2.upstream.DataSpec)

Aggregations

RangedUri (com.google.android.exoplayer2.source.dash.manifest.RangedUri)4 DataSpec (com.google.android.exoplayer2.upstream.DataSpec)3 InitializationChunk (com.google.android.exoplayer2.source.chunk.InitializationChunk)2 Representation (com.google.android.exoplayer2.source.dash.manifest.Representation)2 Format (com.google.android.exoplayer2.Format)1 BehindLiveWindowException (com.google.android.exoplayer2.source.BehindLiveWindowException)1 ChunkExtractorWrapper (com.google.android.exoplayer2.source.chunk.ChunkExtractorWrapper)1 ContainerMediaChunk (com.google.android.exoplayer2.source.chunk.ContainerMediaChunk)1 SingleSampleMediaChunk (com.google.android.exoplayer2.source.chunk.SingleSampleMediaChunk)1 SingleSegmentBase (com.google.android.exoplayer2.source.dash.manifest.SegmentBase.SingleSegmentBase)1