- From: Benjamin Gruenbaum <notifications@github.com>
- Date: Tue, 03 Apr 2018 05:41:33 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 3 April 2018 12:42:26 UTC
Just exposing watermarks would be a great start for what I need, although to be fair it looks like no browsers handle backpressure:
```
(async () => {
const r = await fetch('https://storage.googleapis.com/long-mp4-file.mp4', {
cache: 'no-store'
});
const reader = r.body.getReader();
var i = 10;
while(i --> 0) {
await new Promise(r => setTimeout(r, 2000));
console.log(await reader.read());
}
reader.cancel();
})();
```
Every browser I tested (FF, Safari and Chrome) downloaded the whole 75mb video. Is this just a bug in the implementation or am I doing something wrong?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/689#issuecomment-378235849
Received on Tuesday, 3 April 2018 12:42:26 UTC