mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Fix GitHub issue #572
This commit is contained in:
parent
91b47cfe6b
commit
4092e8ca0f
1 changed files with 2 additions and 1 deletions
|
|
@ -187,9 +187,10 @@ public class HlsChunkSource {
|
|||
|
||||
if (playlist.type == HlsPlaylist.TYPE_MEDIA) {
|
||||
variants = new Variant[] {new Variant(0, playlistUrl, 0, null, -1, -1)};
|
||||
variantPlaylists = new HlsMediaPlaylist[] {(HlsMediaPlaylist) playlist};
|
||||
variantPlaylists = new HlsMediaPlaylist[1];
|
||||
variantLastPlaylistLoadTimesMs = new long[1];
|
||||
variantBlacklistTimes = new long[1];
|
||||
setMediaPlaylist(0, (HlsMediaPlaylist) playlist);
|
||||
// We won't be adapting between different variants.
|
||||
maxWidth = -1;
|
||||
maxHeight = -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue