While a network song plays, download the whole files of the next two
queue songs and then the current one, one at a time, into a bounded
app cache (1 GB, 32 files, 256 MB per file, least recently used first,
never a wanted or just played copy). Downloads write to a temporary
name and are renamed once complete, start a few seconds into a song and
stop when a song leaves the wanted set.
Playback opens a complete copy as a local file on every engine and
streams from the server until then; saved offline copies keep priority.
Gapless preparation waits for a copy still downloading until 10 seconds
before the end. Copies are checked against the server's size and
modification time or entity tag, and in-app edits, deletions and
removed connections drop them. Mornye Link virtual hosts are skipped.