mirror of
https://github.com/androidx/media.git
synced 2025-05-07 23:50:44 +08:00
parent
ed51b58242
commit
1a5d12359d
@ -146,6 +146,11 @@ public class HlsRendererBuilder implements RendererBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (variantIndices.length == 0) {
|
||||||
|
player.onRenderersError(new IllegalStateException("No variants selected."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
|
DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
|
||||||
HlsChunkSource chunkSource = new HlsChunkSource(dataSource, url, manifest, bandwidthMeter,
|
HlsChunkSource chunkSource = new HlsChunkSource(dataSource, url, manifest, bandwidthMeter,
|
||||||
variantIndices, HlsChunkSource.ADAPTIVE_MODE_SPLICE, audioCapabilities);
|
variantIndices, HlsChunkSource.ADAPTIVE_MODE_SPLICE, audioCapabilities);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user