-
Notifications
You must be signed in to change notification settings - Fork 425
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: have reloadSourceOnError get src from player #893
Conversation
Previously, we were getting the source from tech.currentSource_. This only gets set when a source handler like VHS is used. However, because VHS is in Video.js by default and the plugin is global, some people are using this plugin for other sources as well. There isn't a reason why we should be relying on tech.currentSource_ over player.currentSource() when we have access to the player in the plugin. Fixes videojs/video.js#6744
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.
code looks good, tests are failing though.
Co-authored-by: Garrett Singer <[email protected]>
@gkatsev Do I understand correctly that You fixed this? If so, when will the new version of the player be released and will there be documentation for the parameter |
@Raino it's fixed. It may be a bit to get released as it's tied with a lot of other changes. In the meantime, you could grab the code from https://github.com/videojs/http-streaming/blob/main/src/reload-source-on-error.js and load it manually. |
@gkatsev How can I install this on my site? Perhaps I can download a full archive of all the scripts with the latest changes somewhere? |
Previously, we were getting the source from tech.currentSource_. This
only gets set when a source handler like VHS is used. However, because
VHS is in Video.js by default and the plugin is global, some people are
using this plugin for other sources as well.
There isn't a reason why we should be relying on tech.currentSource_
over player.currentSource() when we have access to the player in the
plugin.
Fixes videojs/video.js#6744