Commit 6b775efd by Oliver Woodman

Fix playback of HLS media playlists

parent 1a5d1235
...@@ -144,12 +144,11 @@ public class HlsRendererBuilder implements RendererBuilder { ...@@ -144,12 +144,11 @@ public class HlsRendererBuilder implements RendererBuilder {
player.onRenderersError(e); player.onRenderersError(e);
return; return;
} }
}
if (variantIndices.length == 0) { if (variantIndices.length == 0) {
player.onRenderersError(new IllegalStateException("No variants selected.")); player.onRenderersError(new IllegalStateException("No variants selected."));
return; 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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment