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 315 forks source link

SCTE35 - EXT-OATCLS-SCTE35 with EXT-X-CUE-IN #179

Open dmitry-seven opened 2 years ago

dmitry-seven commented 2 years ago

some m3u8 playlists have the EXT-OATCLS-SCTE35 line both before EXT-X-CUE-OUT and before the EXT-X-CUE-IN tag, in fact they include data about the tag itself, here is an example from Amazon:

https://docs.aws.amazon.com/mediaconvert/latest/ug/sample-manifest-scte-35-enhanced-ad-markers.html

now, as soon as we catch EXT-OATCLS-SCTE35, state.scte.CueType = SCTE35Cue_Start and state.tagSCTE35 = true is set, so when parsing the playlist, the EXT-X-CUE-OUT insertion condition is always triggered and the EXT-X-CUE-IN insertion condition is never triggered.

without editing reader.go I do not understand how best to fix it

2022-01-05 19 56 00