-
Notifications
You must be signed in to change notification settings - Fork 424
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
Clamp seekable end #1433
Clamp seekable end #1433
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1433 +/- ##
=======================================
Coverage 85.98% 85.99%
=======================================
Files 42 42
Lines 10428 10430 +2
Branches 2412 2413 +1
=======================================
+ Hits 8967 8969 +2
Misses 1461 1461
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Seems eminently reasonable to me!
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.
Great find!
* fix seekable end * fix eslint error --------- Co-authored-by: Dzianis Dashkevich <ddashkevich@brightcove.com>
Description
We have default
liveEdgePadding
as 3 * targetDuration.Assume we have a stream with a maximum of three segments.
Each segment's actual duration is less than a
targetDuration
.In this scenario, we may have a
seekable.end
less than aseekable.start
.This may lead to unexpected behavior.
Specific Changes proposed
Clamp
seekable.end
to make sure that it is more or equal toseekable start
.Requirements Checklist