grafov / m3u8

Parser and generator of M3U8-playlists for Apple HLS. Library for Go language. :cinema:

Home Page:http://tools.ietf.org/html/draft-pantos-http-live-streaming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SeqNo bug, increment needed only when chunk removed

hori-ryota opened this issue · comments

m3u8/writer.go at master · grafov/m3u8

Here is necessary code.

It cause following bug,

  • first
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:12
#EXTINF:10.000,
0ts
  • next
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-TARGETDURATION:12
#EXTINF:10.000,
0ts
#EXTINF:10.000,
1ts
  • correct
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:12
#EXTINF:10.000,
0ts
#EXTINF:10.000,
1ts

Hmm... did we fix it? :|