-
Notifications
You must be signed in to change notification settings - Fork 427
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
Conversation
// 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) { |
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.
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; |
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.
Possibly safeAppend_
could be removed completely if it was only used with IE11
Codecov Report
@@ 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
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Would be good if either @brandonocasey or @gesinger would have a change to take a look at this. |
Just noting here that we'll merge this post-3.0 because 3.0 will be broken in IE and legacy Edge regardless. |
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