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: ignore progress events #143

Merged
merged 2 commits into from
Oct 4, 2018
Merged

fix: ignore progress events #143

merged 2 commits into from
Oct 4, 2018

Conversation

forbesjo
Copy link
Contributor

@forbesjo forbesjo commented Oct 3, 2018

Description

Listening to progress events is redundant, this plugin already monitors timeupdate for playhead progress. The error dialog does not pause on open so if playback resumes the error will be cleared by the playhead moving (https://github.com/videojs/video.js/blob/master/src/js/error-display.js#L61).

Specific Changes proposed

Remove the progress event listener so the timeout monitor does not reset.

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Unit Tests updated or fixed
    • Docs/guides updated
  • Reviewed by Two Core Contributors

@forbesjo
Copy link
Contributor Author

forbesjo commented Oct 3, 2018

This would be a major update since an API is being removed

Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

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

Also, I wonder whether we should release this as a minor rather than a fix?

@@ -309,11 +304,6 @@ const initPlugin = function(player, options) {
}
};

reInitPlugin.disableProgress = function(disabled) {
Copy link
Member

Choose a reason for hiding this comment

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

this will be a breaking change. It probably should just be a no-op now.

@gkatsev
Copy link
Member

gkatsev commented Oct 3, 2018

Ah, didn't see your comment about this being a breaking change. I think it'll be better to just make it a no-op and make it a patch/minor release

@ldayananda
Copy link

Tested on IE11 and Edge. LGTM

@forbesjo forbesjo merged commit 348f670 into master Oct 4, 2018
@forbesjo forbesjo deleted the ignore-progress branch October 4, 2018 18:43
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.

None yet

4 participants