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

feat: Remove remnants of IE and old Edge #1343

Merged
merged 3 commits into from
Mar 15, 2023
Merged

Conversation

mister-ben
Copy link
Contributor

Description

Removes most remaining IE specific code, in part to be able to remove videojs.browser.IE_VERSION.
Also removes some legacy Edge checks.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
  • Reviewed by Two Core Contributors

// in IE and Edge, but seeking in place is sufficient on all other browsers)
// Edge/IE bug: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14600375/
// Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=651904
this.mainSegmentLoader_.resetEverything(() => {
// Since this is not a typical seek, we avoid the seekTo method which can cause segments
// from the previously enabled rendition to load before the new playlist has finished loading
if (videojs.browser.IE_VERSION || videojs.browser.IS_EDGE) {
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 think this was only needed for legacy Edge

@@ -576,7 +576,7 @@ export default class SegmentLoader extends videojs.EventTarget {
// TODO possibly move gopBuffer and timeMapping info to a separate controller
this.gopBuffer_ = [];
this.timeMapping_ = 0;
this.safeAppend_ = videojs.browser.IE_VERSION >= 11;
this.safeAppend_ = false;
Copy link
Contributor Author

@mister-ben mister-ben Oct 27, 2022

Choose a reason for hiding this comment

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

Possibly safeAppend_ could be removed completely if it was only used with IE11

@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

Merging #1343 (af60e2f) into main (ce7edd9) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1343      +/-   ##
==========================================
- Coverage   85.38%   85.36%   -0.02%     
==========================================
  Files          40       40              
  Lines        9966     9957       -9     
  Branches     2314     2311       -3     
==========================================
- Hits         8509     8500       -9     
  Misses       1457     1457              
Impacted Files Coverage Δ
src/playlist-controller.js 95.13% <100.00%> (-0.06%) ⬇️
src/segment-loader.js 96.38% <100.00%> (ø)
src/source-updater.js 94.19% <100.00%> (ø)
src/videojs-http-streaming.js 90.61% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@gkatsev
Copy link
Member

gkatsev commented Oct 29, 2022

Would be good if either @brandonocasey or @gesinger would have a change to take a look at this.

@misteroneill
Copy link
Member

Just noting here that we'll merge this post-3.0 because 3.0 will be broken in IE and legacy Edge regardless.

@misteroneill misteroneill changed the base branch from next to main February 23, 2023 19:18
@mister-ben mister-ben merged commit 93a2bfd into videojs:main Mar 15, 2023
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