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.22k stars 312 forks source link

Adding Head method to get details of first segment #175

Open pinkeshrathore opened 3 years ago

pinkeshrathore commented 3 years ago

In a sliding window playlist, we need to increase disconitnuity sequence number if the first segment of the playlist is removed. Since, there is no method or attribute exposed to get the first segment details, we are not able to obtain discontinuity flag from the it. Exposing a method to get the "head" segment of the playlist.