Expose the ability to set an `beforeRequest` function on the xhr object in order…
… to modify the options used to create the request object * Make Xhr a factory function that returns a unique instance of the xhr function and expose an instance of it on each player's xhr object * Keep the returned function is backward compatible with the previous xhr * Add a `beforeRequest` function to the XHR that allows you to override options before the request * The `beforeRequest` function can be specified on the global `videojs.Hls.xhr` function and it'll be used for all players unless overridden on a per-player level
Showing
5 changed files
with
192 additions
and
88 deletions
-
Please register or sign in to post a comment