videojs / m3u8-parser

An m3u8 parser.
Other
471 stars 98 forks source link

A segment with several URLs is splitted into multiple segments #162

Open spiff-radio opened 1 year ago

spiff-radio commented 1 year ago

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.

gkatsev commented 1 year ago

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