grafov / m3u8

Parser and generator of M3U8-playlists for Apple HLS. Library for Go language. :cinema:
http://tools.ietf.org/html/draft-pantos-http-live-streaming
BSD 3-Clause "New" or "Revised" License
1.23k stars 313 forks source link

Decode got error while `#EXT-X-PROGRAM-DATE-TIME' exists in media playlist #120

Closed leikao closed 5 years ago

leikao commented 5 years ago

When I use m3u8 to decode a media playlist, it got error:

playlist is empty

The m3u8 file just like this:

EXTM3U

EXT-X-VERSION:3

EXT-X-MEDIA-SEQUENCE:0

EXT-X-ALLOW-CACHE:YES

EXT-X-PROGRAM-DATE-TIME:2018-12-31T09:47:22+08:00

EXT-X-TARGETDURATION:15

EXTINF:14.666000,

20181231/0555e0c371ea801726b92512c331399d_00000000.ts

EXTINF:13.698000,

20181231/0555e0c371ea801726b92512c331399d_00000001.ts

EXTINF:14.668000,

20181231/0555e0c371ea801726b92512c331399d_00000002.ts

EXTINF:13.200000,

20181231/0555e0c371ea801726b92512c331399d_00000003.ts

EXT-X-ENDLIST