mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Fix playback of HLS media playlists
This commit is contained in:
parent
1a5d12359d
commit
6b775efd4d
1 changed files with 4 additions and 5 deletions
|
|
@ -144,11 +144,10 @@ public class HlsRendererBuilder implements RendererBuilder {
|
|||
player.onRenderersError(e);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (variantIndices.length == 0) {
|
||||
player.onRenderersError(new IllegalStateException("No variants selected."));
|
||||
return;
|
||||
if (variantIndices.length == 0) {
|
||||
player.onRenderersError(new IllegalStateException("No variants selected."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
|
||||
|
|
|
|||
Loading…
Reference in a new issue