Repository navigation
Description
Problem
When the server restarts or the connection drops mid-playback, a stream that was already playing should pause and resume at the same position once the server answers again (1.0 Core experience: "mid-stream drop → pause and auto-resume on reconnect"). Silo-Server/silo-server#1808 (fixing Silo-Server/silo-server#1792) implements this on the web and writes the rule down in docs/architecture/playback-protocol-v3.md §6.2 "A lost connection is not a failed route".
In silo-android, PlaybackSessionManager (android-shared/.../common/player/PlaybackSessionManager.kt) falls back to FAILURE_RECOVERY_V3_OPERATION for failures that are not a seek or an explicit intent, including a lost connection. A failure_recovery replan tells the server to exclude the current route, so after a network blip a direct-play viewer can come back on a transcode, and when the server is down the replan itself fails.
Proposed change
Follow §6.2:
- A network failure on a stream that has already shown a frame is a lost connection: pause, show a reconnecting state, keep the position.
- Retry with a no-op
track_changereplan at the saved position (keeps the route eligible), with backoff (the web uses 1, 2, 4, 8 s, then every 15 s, for 12 attempts) and one attempt in flight at a time. - If the session is gone (404 after a server restart), start a new session at the saved position with the current audio and subtitle choice (omit the subtitle fields when subtitles are off), then stop the old session.
- Resume playing only if the viewer was playing. On give-up, show "Connection lost" with Try again.
- A stream that fails before its own first frame keeps the existing startup-failure path and
failure_recovery, since that route may be unreachable from this device.
References
- Server: fix(player): reconnect and resume after a mid-stream server drop silo-server#1808, [bug] Web player stays on an error after a mid-stream server drop instead of resuming silo-server#1792; server-side session rebuild after restart: playback: restart resilience misses control-plane endpoints — progress 404 kills recoverable streams within 10s silo-server#333
- Found during the Series validation, Series — Web silo-server#1252 C5
AI Disclosure
- Harness: Claude Code (running in T3 Code)
- Tool(s): Claude Code (Bash, Read, sub-agents, browser automation through the T3 Code preview), GitHub CLI, Docker, FFmpeg
- Model(s): claude-opus-5-5
- Involvement: Fully AI-generated, human verified
- Adversarial review: n/a
Activity