mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
parent
ed51b58242
commit
1a5d12359d
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Reference in a new issue