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:
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
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