m3u8-parser icon indicating copy to clipboard operation
m3u8-parser copied to clipboard

A segment with several URLs is splitted into multiple segments

Open spiff-radio opened this issue 2 years ago • 1 comments

Hi, this is a valid item (with multiple URLs).

#EXTINF:-1,a=Artist 3,t=Song 3
http://example.com/song3.mp3
http://example.com/song3-live.mp3

It should return a single segment with multiple URLs, but returns multiple segments instead.

spiff-radio avatar Apr 11 '23 10:04 spiff-radio

This doesn't seem to be valid according to the HLS specification. Section 4.4.4.1 EXTINF implies that only one url can be used

It applies only to the next Media Segment. This tag is REQUIRED for each Media Segment

gkatsev avatar Apr 11 '23 15:04 gkatsev