mirror of
https://github.com/androidx/media.git
synced 2025-05-07 07:30:22 +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);
|
||||
HlsChunkSource chunkSource = new HlsChunkSource(dataSource, url, manifest, bandwidthMeter,
|
||||
variantIndices, HlsChunkSource.ADAPTIVE_MODE_SPLICE, audioCapabilities);
|
||||
|
Loading…
x
Reference in New Issue
Block a user