Re: [whatwg/fetch] Body.arrayBuffer([begin, end]) (#554)

Have little if any experience using caches. And not sure gathering requirement correct. If you are trying to get only a range of time slices from a media resource already accessible at browser you could use [Media Fragment URI](https://www.w3.org/TR/media-frags/) at an `HTMLMediaElement`. If necessary capture the stream of media playback with `HTMLMediaElement.captureStream()` to get `Blob` or `ArrayBuffer` representation of the slice of media played back

```
<label>Play first 30 seconds of audio</label><br><audio controls src="https://upload.wikimedia.org/wikipedia/commons/b/be/Hidden_Tribe_-_Didgeridoo_1_Live.ogg#t=0,30"></audio><br><br>
<label>Play from 30 to 50 seconds of audio</label><br><audio controls src="https://upload.wikimedia.org/wikipedia/commons/b/be/Hidden_Tribe_-_Didgeridoo_1_Live.ogg#t=30,50"></audio>
```

Alternatively, request resource as `Blob`, or `ArrayBuffer`, use `.slice()` or `.subarray()`  to get from, to bytes of `Blob` or `ArrayBuffer`, respectively.

-- 
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/554#issuecomment-309049392

Received on Friday, 16 June 2017 15:00:40 UTC