Note that with this PR, the scope of this module changes to encompass more use-cases. See the README notes for details.
Also note that this includes functionality for https://github.com/videojs/http-streaming/pull/649, and helps to break that PR up into fewer code changes per PR. If this gets merged, those functions can be stripped from @videojs/http-streaming and simply reference this module's functions.
So long as the scope change of this module is acceptable, more PRs will be added soon with additional extracted functions from VHS.
Note that with this PR, the scope of this module changes to encompass more use-cases. See the README notes for details.
Also note that this includes functionality for https://github.com/videojs/http-streaming/pull/649, and helps to break that PR up into fewer code changes per PR. If this gets merged, those functions can be stripped from @videojs/http-streaming and simply reference this module's functions.
So long as the scope change of this module is acceptable, more PRs will be added soon with additional extracted functions from VHS.
Code derived from https://github.com/videojs/http-streaming/blob/master/src/videojs-http-streaming.js#L85