Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Check plugin reloadSourceOnError is registered or not. #1449

Closed

Conversation

fatelei
Copy link

@fatelei fatelei commented Aug 31, 2018

Description

image

reloadSourceOnError plugin has already registered.

Specific Changes proposed

Please list the specific changes involved in this pull request.

Requirements Checklist

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

@@ -601,7 +601,9 @@ videojs.m3u8 = m3u8;
videojs.options.hls = videojs.options.hls || {};

if (videojs.registerPlugin) {
videojs.registerPlugin('reloadSourceOnError', reloadSourceOnError);
if (!videojs.getPlugin('reloadSourceOnError') {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest deregistering the plugin if it exists so players would get the "newer" version of the plugin

Copy link
Author

Choose a reason for hiding this comment

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

Great suggest

@fatelei fatelei force-pushed the fix-reregister-reloadSourceOnError branch from f142b9d to 8aaabce Compare September 3, 2018 01:58
@fatelei
Copy link
Author

fatelei commented Sep 3, 2018

@forbesjo I fix the review issue

@forbesjo
Copy link
Contributor

Thank you for your PR but we will not be accepting new changes for this repo and will be archived very soon. I would advise you to open your PR against the next iteration of this project at https://github.com/videojs/http-streaming.

@forbesjo forbesjo closed this Jan 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants