videojs / videojs-errors

A video.js plugin that displays error messages to video viewers.
Other
87 stars 29 forks source link

fix: ignore progress events #143

Closed forbesjo closed 5 years ago

forbesjo commented 5 years ago

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

forbesjo commented 5 years ago

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

gkatsev commented 5 years ago

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 commented 5 years ago

Tested on IE11 and Edge. LGTM