Repository navigation
fix(player): leave playback when an administrator ended the session - #548
Conversation
When an administrator stops a session while the player cannot be reached over its control socket, the server now ends the attempt and answers progress and replan with 410 playback_session_ended. The phone, tablet and TV players kept playing: the sequenced progress journal retried the sample forever and showed a pending-progress warning, and a recovery replan surfaced an error over the player. The playback lifecycle now reports such a session, and both player view models leave playback on it, or on a replan that gets the same answer, through the same path as a stop delivered over the control socket.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 44 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Evidence is missing for the changed playback behavior. Please add before/after captures and a short recording on Android mobile and TV showing an administrator stop with the control socket unavailable: playback exits instead of continuing or showing the source error, and TV focus returns correctly. Identify the builds used; the validation notes alone do not show these changes. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bd3a225232
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A 410 playback_session_ended answer to a subtitle_embedded_failed replan was treated as a failed subtitle fallback, so the phone said playback continues. It now leaves playback like the TV does.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Evidence is published: https://evidence.siloserver.org/r/silo-android/pr-548/ It has before and after recordings plus a screenshot 30 s after the stop for the Android mobile app (on a Pixel Tablet emulator) and Android TV. Each run takes over the control socket with a silent connection, then sends the admin stop. Before: the tablet keeps playing a session that is gone from Activity, and the TV ends on a source error. After: both return to Home, the TV with focus on the title, and no new session starts. Builds: before is silo-android main 97f6773 with silo-server main; after is this branch at bd3a225 with Silo-Server/silo-server#2280. The later commit a8da533 only changes the phone's subtitle-recovery replan path. AI disclosure: written with Claude Code (claude-opus-5-5). |
Problem
Related issue: Silo-Server/silo-server#1205
Validation tasks: unblocks #340 C2, #341 C2
When an administrator stops a session while the Android phone, tablet or TV player can't be reached over its control socket, the player doesn't stop. A phone or tablet keeps playing what it has buffered while the session is already gone from Activity, and the progress journal retries forever with a "Playback progress is pending" warning. An Android TV playing a transcode ends on a "Source error" screen with Retry.
With Silo-Server/silo-server#2280 the server answers progress and replan for such a session with
410 playback_session_ended. This change makes the player leave on that answer.Approach
The playback lifecycle reports a
410 playback_session_endedprogress answer to its owner (sequenced and legacy reporting alike) instead of retrying it, and a replan that gets the same answer no longer shows an error. The phone and TV player view models then leave playback through the same path as a stop delivered over the control socket. Renewal on404is unchanged.Needs Silo-Server/silo-server#2280; against an older server the
410never appears and nothing changes.Validation
:android-shared:testDebugUnitTestfor the lifecycle: pass. Both apps assemble.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-548/
Risks
None identified.
Checklist
AI Disclosure
gh), Android emulator,adband Gradleclaude-opus-5-5)/code-review, medium) covered this branch with the server and Apple branches. It reported no correctness findings for this branch. This was an AI self-review; no independent human review is claimed.