-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Prefer Fetch API over XHR #829
Comments
Note: @theodab has discovered that Fetch is missing timeout/abort functionality that would bring it to parity with XHR. This means we will not always be able to use Fetch. See whatwg/fetch#20 and whatwg/fetch#447. |
As an update... |
Thanks for the update! |
This modified the networking engine to store every plugin it is given for a scheme, and adds a priority system to pick which of the plugins to use. Issue #829 Change-Id: I21a8a534383f2be898160d609d77efecfc2b684b
This adds a general interface for abortable operations, and a specific implementation of that interface for use internally. This should simplify the transition to abortable network requests and others. Issue #829 Change-Id: Icf54e23028f7454640f5ec76ca97d8a8ed5915ed
This uses AbortableOperation in all networking, from the scheme plugins all the way to the request interface. This also updates all default scheme plugins, docs, and sample code. Backward compatibility is provided for scheme plugins and the request API in NetworkingEngine. This compatibility will be removed in v2.5. Two cancelation-related tests have been disabled in player_integration until the new abort interface has been adopted in the manifest parsers. Issue #829 Change-Id: I91c8e6efe97798d111e8ddca5655cddc1f6bcbf3
Issue #829 Change-Id: I07f29274227af8bd9abc8e907784557ed85c4552
This adds OperationManager to HLS and DASH parsers to allow them to abort and clean up network operations when stopped. We now re-enable the player integration tests that were written to prove the previous polling-based cancelation model. Issue #829 Change-Id: Id09df6e3f2f40eef614d9e597d35f43a50e1673e
This is a regression test for an implementation bug we caught before it was released. It took a little longer to get the regression test working, so this was deferred to a later commit. Issue #829 Change-Id: I272ebe0e6fa2f0ac462c3a3d236250242f7d7192
We now have a fetch request scheme plugin. Note that, because this requires both the fetch API and the AbortController API, as of this moment it will only be used on Firefox and Edge. |
Chrome implementation bug: https://bugs.chromium.org/p/chromium/issues/detail?id=750599 It looks like some or all of the implementation of AbortController landed in Chrome early this week. I haven't talked to Chrome team to confirm, but I expect it would launch in Chrome 66, due out in late April. |
This feature will be out in v2.4 this week. |
We should prefer the Fetch API whenever possible. It looks like that's everywhere but IE 11 right now:
http://caniuse.com/#feat=fetch
The text was updated successfully, but these errors were encountered: