-
Notifications
You must be signed in to change notification settings - Fork 425
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
fix: Use segmentInfo.trackInfo to get segment information. #1162
Conversation
8b7b2b0
to
83f1305
Compare
Codecov Report
@@ Coverage Diff @@
## main #1162 +/- ##
==========================================
+ Coverage 86.44% 86.45% +0.01%
==========================================
Files 39 39
Lines 9551 9562 +11
Branches 2200 2204 +4
==========================================
+ Hits 8256 8267 +11
Misses 1295 1295
Continue to review full report at Codecov.
|
src/segment-loader.js
Outdated
// no segment to append any data for or | ||
// we do not have information on this specific | ||
// segment yet |
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.
is this comment no longer accurate?
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.
This was removed in error. I will bring it back.
Description
This prevents an issue shown via the test that I added. Mainly that a playlist change that happens before we append data from a
pendingSegment_
will cause resetthis.currentMediaInfo_
to be null. Thus causinghandleData_
's call tohasEnoughInfoToAppend_
to throw onthis.currentMediaInfo_.hasAudio