2 ms·
WebTorrent supports two download modes: sequential and rarest-first. In sequential mode, pieces are fetched with high priority when they're immediately needed
by feross 11y ago
WebTorrent supports two download modes: sequential and rarest-first.
In sequential mode, pieces are fetched with high priority when they're immediately needed for streaming. In rarest-first mode, the traditional approach is used.
We're going to add automatic mode switching to a future release, so rarest-first will be used most of the time. The only time sequential mode is needed is right when streaming begins and every time a seek happens. I think this is a nice balance between helping the local user and keeping the swarm healthy.