Add independent segments hint in m3u8 file

This commit is contained in:
Zoe Roux 2024-01-19 23:49:20 +01:00
parent dd9e0b4fc7
commit 415b5b45b9

View File

@ -205,6 +205,7 @@ func (ts *Stream) GetIndex() (string, error) {
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:4
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-INDEPENDENT-SEGMENTS
`
for segment := 0; segment < len(ts.file.Keyframes)-1; segment++ {