w3c / webmediaapi

Web Media API specification
https://w3c.github.io/webmediaapi/
31 stars 19 forks source link

Fetch #60

Closed squapp closed 7 years ago

squapp commented 7 years ago

Has it been considered to add Fetch API to the networking specifcations? According to this it is supported by the four major web user agents. It is required in the context of low-latency streaming, e.g. being able to retrieve sub-segments (or CMAF chunks) before the full segment is transmitted.

mavgit commented 7 years ago

@squapp Thanks for pointing this out. I believe it is an oversight.

Not only is the API supported on all of our four target code bases, but caniuse lists no issues. We rely on this API.

I propose a Call for Consensus to add a third MUST requirement to 2.7 Networking specifications:

  • Fetch [FETCH]

This will add the following reference from Specref:

Anne van Kesteren. Fetch Standard. Living Standard. URL: https://fetch.spec.whatwg.org/

joeyparrish commented 7 years ago

Adding Fetch LGTM. Fetch is critical for networking from service workers, which can't use XHR.

davemevans commented 7 years ago

Consensus reached on on call 05/04/17. Next steps: Create and merge PR as detailed in https://github.com/w3c/webmediaapi/issues/60#issuecomment-291677327