My application does editing of an HLS input. I alter certain segments. I replace the original segments with these altered segments into the media manifest and #EXT_X_DISCONTINUITY markers added before the first altered segment and then at the end of last segment
The playback is generally fine but mild audio pause/blip is heard at the point of discontinuity. To rule out issue with my modification, I inserted the discontinuity markers in the original content itself and to my surprise, I could see issues on Safari in the original content itself
For example, if my content is
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:4
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:3,
0.ts
#EXTINF:3,
1.ts
#EXTINF:3,
2.ts
#EXTINF:3,
3.ts
#EXTINF:3,
4.ts
#EXTINF:3,
5.ts
#EXTINF:3,
6.ts
EXT-X-ENDLIST
I change it to
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:4
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:3,
0.ts
#EXTINF:3,
1.ts
#EXT-X-DISCONTINUITY
#EXTINF:3,
2.ts
#EXTINF:3,
3.ts
#EXTINF:3,
4.ts
#EXTINF:3,
5.ts
#EXT-X-DISCONTINUITY
#EXTINF:3,
6.ts
EXT-X-ENDLIST
I dont expect any playback issue here but I do hear audio blips at the point of discontinuity Does anyone have any info on how I can generate the content such that playback is gapless and no audio/video issue seen at discontinuity?