Repository navigation
Description
What happened
When the audiobook player loads a new stream while the book is paused, playback starts anyway. Both players set playWhenReady = true every time they mount a new stream URL, whatever the pause state:
- phone:
AudiobookPlayerScreen.kt:142 - TV:
TvAudiobookPlayerScreen.kt:178
The effect that applies pause intent (controller?.playWhenReady = !state.isPaused) is keyed on isPaused, which didn't change, so it doesn't run again. The Media3 listener then reports playWhenReady = true back to the view model, which clears isPaused. The pause is lost.
The most common trigger is seeking a paused multi-part book into another part, for example with a chapter skip. seekTo calls loadTrack(autoplay = false), which keeps isPaused true and starts a session for the new part. When that session's stream mounts, the book starts playing.
Any other stream replacement that finishes while paused does the same: a replan after a player error, or a session renewal (silo-android#708), when the user pauses while the request is in flight.
Steps to reproduce
From the source on main. I haven't reproduced this on a device.
- Open a multi-part audiobook online on Android phone or Android TV.
- Pause it.
- Skip to a chapter in another part, or drag the slider into another part.
- The new part loads and starts playing.
Expected behavior
A paused book stays paused when a new stream loads for it. loadTrack's autoplay flag, and the player's pause intent in general, decide whether playback starts. Mounting the stream shouldn't.
Device
Android phone and Android TV (shared logic; tablet and foldable use the phone player)
Device model and OS version
Not reproduced on a device
App version and build
main at 461240c
Installed from
Source build
Silo server version
n/a (client-side)
Playback details
Audiobook, online direct play, multi-part book
Diagnostics report reference
n/a
Screenshots or recording
n/a
Relevant server logs
No logs available
Technical notes
A likely fix is to mount with c.playWhenReady = !viewModel.uiState.value.isPaused (read at mount time) in both screens, so the existing pause-intent effect and the mount agree. Check what the Apple app does for a paused cross-part seek before choosing. The mount was likely written for the first load, where playback should start.
Source: found in review of silo-android#708
AI harness
Claude Code (T3 Code)
AI tool(s)
Claude Code, Codex CLI, GitHub CLI
AI model(s)
claude-opus-5-5; gpt-6.1-sol (cross-provider review)
AI involvement
Fully AI-generated, not yet verified by a person
Independent or adversarial review
GPT 6.1 Sol raised this during a cross-provider review of silo-android#708. Claude Opus 5.5 confirmed it on main by tracing the source. It wasn't reproduced on a device.
Confirmations
- I searched open and recently closed issues and pull requests, and this is not already reported
- I reproduced this myself on the device and app version above (not reproduced; found in source)
🤖 Claude Code (claude-opus-5-5)
Activity