Skip to content

feat(addons): adaptive multi-connection accelerator for direct addon streams - #215

Merged
ajisth69 merged 2 commits into
mainfrom
feat/adaptive-addon-stream-accelerator
Dec 5, 2026
Merged

ajisth69 merged 2 commits into
mainfrom
feat/adaptive-addon-stream-accelerator

Conversation

@ajisth69

@ajisth69 ajisth69 commented Dec 5, 2026

Copy link
Copy Markdown
Member

Ports the LastWave-native addon stream accelerator to the Tauri desktop playback path.

mpv plays addon FLAC streams through the loopback \LocalMediaServer. Direct addon URLs are now fetched by \�daptive_stream.rs:

  • one bounded 256 KB range at a time while throughput is sampled;
  • below 250 KB/s, verify \Content-Range\ and fan out to 16 concurrent 256 KB ranges, ramping to 32 if still slow;
  • chunks are written to the session .part\ file only as a contiguous prefix, so mpv never waits on a hole;
  • 429/503 halves concurrency and finally resumes sequentially at the last committed byte; servers ignoring Range fall back cleanly;
  • cancel flag on the session stops all workers on eviction / cache clear;
  • real file size is published from \Content-Range\ early so mpv gets a valid Content-Range while the rest downloads.

YouTube, DASH and hybrid CENC paths are untouched.

No local build or test was run, per request.

@ajisth69
ajisth69 merged commit 7681a3a into main Dec 5, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant