-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manifest: add DISCONTINUITY tags to clip playlist #904
Conversation
A discontinuity tag is required in the clip playlist so that it shows the correct duration.
Codecov Report
@@ Coverage Diff @@
## main #904 +/- ##
===================================================
+ Coverage 50.95253% 51.14682% +0.19429%
===================================================
Files 63 63
Lines 6404 6409 +5
===================================================
+ Hits 3263 3278 +15
+ Misses 2874 2864 -10
Partials 267 267
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, retro review from Thom/Max
if isClip { | ||
_, totalSegs := video.GetTotalDurationAndSegments(renditionPlaylist) | ||
renditionPlaylist.Segments[1].Discontinuity = true | ||
renditionPlaylist.Segments[totalSegs-1].Discontinuity = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we get an Array Out Of Bounds for a single segment clip? Possibly not because of the weird array preallocation stuff of the playlist library, but probably good to guard against anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup exactly what we ran into. Fixed here: dd52162
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A discontinuity tag is required in the clip playlist so that it shows the correct duration.