mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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);
|
player.onRenderersError(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
if (variantIndices.length == 0) {
|
||||||
|
player.onRenderersError(new IllegalStateException("No variants selected."));
|
||||||
if (variantIndices.length == 0) {
|
return;
|
||||||
player.onRenderersError(new IllegalStateException("No variants selected."));
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
|
DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue