You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
Upon decoding a media playlist, I expected SeqId of each segment to contain the sequence id of each segment. For example, if SeqNo of the playlist were 123 and it had three segments, I would expect the SeqId of the three segments to be 123, 124, and 125. However, they are all 0, regardless of SeqNo.
My current workaround it to populate the sequence ids after the fact myself:
pls, listType, err := m3u8.DecodeFrom(reader, true)
switch listType {
case m3u8.MEDIA:
// Cast to media playlist type
mediapls := pls.(*m3u8.MediaPlaylist)
// Populate segment sequence id from playlist sequence number
for i, segment := range mediapls.Segments {
if segment == nil {
break
}
mediapls.Segments[i].SeqId = mediapls.SeqNo + uint64(i)
}
...
The text was updated successfully, but these errors were encountered:
Upon decoding a media playlist, I expected
SeqId
of each segment to contain the sequence id of each segment. For example, ifSeqNo
of the playlist were 123 and it had three segments, I would expect theSeqId
of the three segments to be 123, 124, and 125. However, they are all 0, regardless ofSeqNo
.My current workaround it to populate the sequence ids after the fact myself:
The text was updated successfully, but these errors were encountered: