Currently backpressure is only applied once the browser starts throwing exceptions indicating that too much data is buffered. This is causing very high cpu usage in chrome and is just very inelegant in general.
Instead the amount of data given to the browser should be limited directly, by counting the number of bytes, frames, or seconds currently buffered. Figuring out how to do this elegantly may be a bit complex.
Currently backpressure is only applied once the browser starts throwing exceptions indicating that too much data is buffered. This is causing very high cpu usage in chrome and is just very inelegant in general.
Instead the amount of data given to the browser should be limited directly, by counting the number of bytes, frames, or seconds currently buffered. Figuring out how to do this elegantly may be a bit complex.