Re: [whatwg/fetch] Allow request/response.blob() to resolve before reading the full stream (#556)

@jakearchibald Was able to set `Range` request header to `bytes=0-<number less than Content-Length>` at `Request()` object. Media is played back to specific range when set at `.src` of `HTMLMediaElement`. However, when first portion of bytes is greater than `0`, no media is played back. Are you aware of the reason for this result?

When `0` is set at first portion of value of `Range` header media plays back
```
      let headers = new Headers();
      let range = 1024 * 8 * 128;
      headers.append("Range", "bytes=0-" + range); 
      let request = new Request(url, {headers:headers});
      fetch(request)
      .then(response => response.blob())
      .then(data => audio.src = URL.createObjectURL(data))
```
When a number greater than `0` is set at first portion of value of `Range` header media does not plays back

    `headers.append("Range", "bytes=1-" + range);`

http://plnkr.co/edit/vci20DGSjX1fAjrHOcOY?p=preview 

-- 
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/556#issuecomment-310846807

Received on Saturday, 24 June 2017 15:53:33 UTC