Closed dcerisano closed 7 years ago
Wow this is very nice! Thanks for this. :+1:
Is there any way to make this dynamic ? ie when starting download speed limited at ~ 50mbps, when user watching and not doing any seek it limit to file bitrate + 10% - so it uses only needed amount of BW, when user seek's to some point - it again gives full speed (50mbps) and then again after first few pieces downloaded it limits speed to file bitrate + 10% ?
Torrent-stream is for producing any torrent stream, not just video. Content specific requirements (what you described) should be implemented in a torrent-stream consumer.
Also, pulsing is dynamic, but designed to allow torrent-stream consumers to prevent flooding. It does not set hard limits on rates.
Seem to have an early swarm-level solution for network flooding. Just a one-liner in the selector.
Requests to peers are prevented above a threshold swarm download rate (PULSE), and resumed below the threshold, producing a pulse in the network, rather than a flood (see fig 1).
FLOOD allows a limited flood before pulsing begins.
Default is no pulsing (existing behavior). The flood limit and pulse threshold can be set dynamically by a torrent-stream consumer.
For example in a request for a video segment: