Closed NitroCao closed 5 years ago
This seems to be intentional so that you can manipulate the segment window without removing references to segments, but head
and tail
aren't exposed (#127), so it doesn't seem very useful.
DecodeFrom
initializes a playlist with a 1024 length slice, so you'll just have to make a nil
check at the start of your loop
Agree with @mjneil . Here is an example to loop the media segments: https://github.com/grafov/m3u8/blob/920643e7fcabbe6078c26b65e6b38ae9306f5b33/reader_test.go#L653-L655
Closing this issue, you can re-open it if you need more assistance.
code for reproduce:
m3u8 file for test:
result: