LGPL-3.0-or-later source supplement for Local Player web, 2026-11-23.
Upstream libmedia: 152f629d3021fd8013efa464fcb7b55f9fbe7753 (1.3.1).
The full upstream source remains in libmedia-1.3.1-lgpl-web-20261123-source.tar.gz
linked on the same license page. Earlier binary/source offers are preserved.

Extract this supplement into an empty directory. Run with Node 22 or later:
  node scripts/libmedia-buffer.mjs
No download, paid API, model, network connection or package install is needed.
The input bundles are SHA-256 checked and patch anchors must be unique.
Outputs: avplayer.buffer4.js, 26.buffer4.avplayer.js, 573.buffer4.avplayer.js
in the bundled avplayer directory. Compare their hashes with manifest.buffer4.json.
Replace these three output assets to use a modified build of the library.

This patch retains the 30 s MSE forward target and 3 s start/seek gates, and adds
time/byte-bounded adaptive encoded packet buffering for decoder playback.
Only compressed packets grow; decoded 4K frames do not form a seconds-long cache.
The application also includes wire-throughput health, actual buffer status,
buffered timeline ranges and explicit playback recovery without changing consent.
Policy, UI and focused tests are included alongside the reproducible engine patch.
