From a4b875ef34074710ad258eeb22fa969462b9e926 Mon Sep 17 00:00:00 2001 From: xocko Date: Wed, 14 Oct 2026 20:38:17 +0200 Subject: [PATCH] Minamp 1.2 - Transcoding: send client identities Plex has a profile for (unknown ones get 400 "unable to find a matching profile"), with a fresh session id per variant - Stream proxy: fetch transcodes once into a temp file and serve every player request from it, so reconnects no longer restart the transcode (503s, tracks cut short); original files still pass Range requests through - Sign-in: remember the pending link code so it survives Minamp being closed while the code is entered elsewhere; add "I've entered it - check now" - Diagnostics: in-app connection log (DiagLog) with a streaming test and save to SD card; tokens are never logged Co-Authored-By: Claude Opus 5.5 --- AndroidManifest.xml | 4 +- res/layout/activity_setup.xml | 13 +- src/com/minamp/BaseActivity.java | 106 +++++++- src/com/minamp/PlayerService.java | 21 +- src/com/minamp/SetupActivity.java | 118 ++++++--- src/com/minamp/net/DiagLog.java | 47 ++++ src/com/minamp/net/Http.java | 15 +- src/com/minamp/net/StreamProxy.java | 394 ++++++++++++++++++++-------- src/com/minamp/plex/Library.java | 108 +++++--- src/com/minamp/plex/Plex.java | 1 + test/PlexTest.java | 45 +++- test/mock_plex.py | 25 +- 12 files changed, 701 insertions(+), 196 deletions(-) create mode 100644 src/com/minamp/net/DiagLog.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index b4fe4ad..09ada31 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ diff --git a/res/layout/activity_setup.xml b/res/layout/activity_setup.xml index 3fd1abc..b73d354 100644 --- a/res/layout/activity_setup.xml +++ b/res/layout/activity_setup.xml @@ -30,6 +30,12 @@