Re: [whatwg/streams] Fix makeReadableBackpressureByteSocketStream to drain all data (#504)

One problem with the adaptive streaming example that I didn't anticipate was that it is not clear what to do when the queue is full. I was picturing reducing the bitrate, but your answer of increasing it also makes sense.

I think we can assume that packets are always read completely or not at all, and so simplify the interface back to the "onreadable" event that was there originally. If v.byteLength - v.byteOffset is less than the size of the incoming packet then that's bad, but maybe it's better to gloss over that issue.

I think this example represents the state-of-the-art of adaptive streaming 20 years ago, and people who actually work in this area will realise that and be forgiving.

-- 
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/streams/pull/504#issuecomment-239727644

Received on Monday, 15 August 2016 04:30:52 UTC