The WebView bridge cost more than it gave back. #50 landed Nov 3 and
four fix commits followed in two days over the seams of the bridge
alone; the p2pml library pinned okhttp {strictly 5.2.1}, whose classpath
clash killed the whole fake-backend test suite for two days (every test
died with NoClassDefFoundError before its first assertion), and the
engine set a toolchain floor (Kotlin 2.2, AGP 8.13, compileSdk 36,
Media3 1.8) plus +0.8 MB of APK for a library the emulator cannot even
run. A single playback session also carried a WebView, a Ktor loopback
server and a JS engine — the heaviest components Android has.
Playback is back to exactly the pre-#50 shape: origin/R2 streaming with
the file-token re-injection (#41) and the deep-buffer tuning (155edd0)
kept. The keeper work and the tuning from the #50 era (background token
fetch, buffered-range visibility, focus handback) all stay.
The implementation is preserved complete on branch p2p/webview-bridge,
including the byte-range research in docs/p2p.md and the upstream patch
in tools/p2p-core-patch/. The toolchain floor stays as it is — nothing
user-visible, and rolling it back risks more than it saves. A proper
implementation would be a native Kotlin WebRTC segment exchanger, not a
JS library in a WebView.
Postpones #50.