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: mp4 sources that use bigint numbers #1217

Merged
merged 9 commits into from
Nov 29, 2021
Merged

fix: mp4 sources that use bigint numbers #1217

merged 9 commits into from
Nov 29, 2021

Conversation

@codecov
Copy link

codecov bot commented Oct 25, 2021

Codecov Report

Merging #1217 (a768a1d) into main (4f9ce7a) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1217      +/-   ##
==========================================
- Coverage   86.43%   86.31%   -0.13%     
==========================================
  Files          39       39              
  Lines        9754     9796      +42     
  Branches     2268     2278      +10     
==========================================
+ Hits         8431     8455      +24     
- Misses       1323     1341      +18     
Impacted Files Coverage Δ
src/segment-loader.js 96.33% <100.00%> (+0.02%) ⬆️
src/xhr.js 100.00% <100.00%> (ø)
src/transmuxer-worker.js 73.48% <0.00%> (-0.26%) ⬇️

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 4f9ce7a...a768a1d. Read the comment docs.

src/segment-loader.js Outdated Show resolved Hide resolved
}
});

return maxDuration;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to check to see if it's a bigint here or smaller than the MAX_SAFE_INTEGER to convert back? I expect most segments shouldn't have such a long duration.

const {start, end} = typeTimingInfo;
let duration;

// eslint-disable-next-line
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 because our version of eslint doesn't know that typeof can return bigint?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if later eslint versions support it? If so, we should make a task for us to update eslint so that we can remove this comment (I see it below as well)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated videojs-standard to support it, I think I can update it as a part of this pull request and remove this line.

src/segment-loader.js Show resolved Hide resolved
gesinger
gesinger previously approved these changes Nov 3, 2021
gkatsev
gkatsev previously approved these changes Nov 15, 2021
@gkatsev gkatsev dismissed stale reviews from gesinger and themself via a768a1d November 29, 2021 23:03
@gkatsev gkatsev merged commit bfd0ad0 into main Nov 29, 2021
@gkatsev gkatsev deleted the fix/bigint branch November 29, 2021 23:18
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.

3 participants