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
I noticed your data structure has changed (my code that uses your library won't build) from 74b837a so that we have lists of AdaptionSets in lists of Periods IIUC.
I have legacy code like:
func reversempd(s []*mpd.Representation) []*mpd.Representation {
for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 {
s[i], s[j] = s[j], s[i]
}
return s
}
if order == "desc" {
for i, v := range m.Period.AdaptationSets {
log.Println(i, v)
v.Representations = reversempd(v.Representations)
for j, r := range v.Representations {
log.Println(j, r, "id", *r.ID)
}
}
}
For reversing the order of the playlist which is needed for some reason or another. Can you suggest a way of realizing my reversal use case in light of the changes?
The text was updated successfully, but these errors were encountered:
I noticed your data structure has changed (my code that uses your library won't build) from 74b837a so that we have lists of AdaptionSets in lists of Periods IIUC.
I have legacy code like:
For reversing the order of the playlist which is needed for some reason or another. Can you suggest a way of realizing my reversal use case in light of the changes?
The text was updated successfully, but these errors were encountered: