Skip to content
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

Merged
merged 5 commits into from
Jul 13, 2021

Conversation

brandonocasey
Copy link
Contributor

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 reset this.currentMediaInfo_ to be null. Thus causing handleData_'s call to hasEnoughInfoToAppend_ to throw on this.currentMediaInfo_.hasAudio

@codecov
Copy link

codecov bot commented Jul 12, 2021

Codecov Report

Merging #1162 (03209eb) into main (df07176) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
src/master-playlist-controller.js 94.53% <100.00%> (+0.01%) ⬆️
src/segment-loader.js 96.22% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df07176...03209eb. Read the comment docs.

Comment on lines 1921 to 1923
// no segment to append any data for or
// we do not have information on this specific
// segment yet
Copy link
Member

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?

Copy link
Contributor Author

@brandonocasey brandonocasey Jul 12, 2021

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.

src/segment-loader.js Show resolved Hide resolved
@brandonocasey brandonocasey merged commit 1d6bb55 into main Jul 13, 2021
@brandonocasey brandonocasey deleted the fix/playlist-update-trackinfo branch July 13, 2021 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants