You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(player): redesign the phone player HUD - #885
Several parts of the phone player's controls were hard to read or use:
The Skip Intro and Skip Credits buttons used a translucent black that vanished over a black pillarbox, so their labels looked unboxed.
During the credits, nothing said which episode would play next.
Holding the phone upright spread the controls over the whole screen, far from the picture.
Menu rows were 44–46dp, under the 48dp touch target. Automated checks found 32 undersized targets across the menus, and the subtitle source line ("SRT · Embedded") measured 1.77:1.
A running sleep timer had no Off choice.
Settings offered both "Picture size" and "Fill the screen" for related choices.
This change redesigns the phone player's controls, menus and skip buttons. On the same states, the checks now find no contrast, target-size or overlap failures.
Approach
Skip buttons: a near-opaque plate with a thin outline, and the countdown as a line along its foot.
Credits:
When the closing credits start and a next episode is lined up, a card names it ("Up next", episode code and title).
The card offers Play next episode and Not now. Not now stops the next episode from starting by itself for this title only; the auto-play setting stays as it is.
The card says "Starts automatically after the credits" only when an automatic start will actually happen. It doesn't say so after Keep Watching, in a Watch Party, or once the auto-play limit is reached.
Earlier credits ranges, for example before a mid-credits scene, keep Skip Credits. Shuffles get no card.
Placement: the skip buttons and the card move clear of the controls while they show, and fade while the timeline is dragged.
Upright phone: the top bar sits on the picture's top edge, and the timeline and labelled action buttons sit under the picture.
Menus:
Rows are 48dp, and list fades are softer.
Chapters show Starts and Length columns.
The sleep timer has an Off row.
The tracks sheet's tabs move into its header.
Settings: the fill option is now Black bars (Keep black bars, Fill, avoid camera, Fill full width), under a Video heading.
Quality: while Auto is held lower after buffering, the row reads Auto with "Adjusted for your connection" under it.
New text comes from the shared catalog: the keys are in Silo-Server/silo-translations#14, and the generated catalog is synced from that branch. One helper in android-shared, inClosingCredits, decides whether a credits range is the closing one, with a unit test.
Phone only. Android TV gets its own pull request; the Apple clients and the web have theirs.
Validation
./gradlew testDebugUnitTest (all modules): pass.
Lint (:android-shared:lintDebug :androidApp:lintDebug :androidTvApp:lintDebug :androidApp:lintVitalRelease :androidTvApp:lintVitalRelease): pass, nothing new beyond the baselines. The supply-chain scripts were not run: they need Ruby, which the test machine lacks, and this change touches no build files.
:androidApp:assembleDebug builds.
Screen states: 12 fixed states, plus 7 added for the skip buttons and the credits card, captured on a Pixel 9 emulator (Android 36) against a dev server with fixed media. Each state is checked for contrast, target size, overlap and clipping, and labels. Before, on the 12 states: 2 contrast, 32 target-size and 1 overlap failures. After, on the same states: none. The added states have 2 contrast results that come from the measurement, not the screen: the elapsed-time label's frame spans the whole timeline row, so the check samples the picture beside it. Over the text itself it measures 18–20:1.
Not checked: tablets and foldables (no capture device for them), and translated languages by eye.
Involvement: Fully AI-generated at the maintainer's request. The maintainer chose between design options; the result is not yet human verified.
Adversarial review: a code review of the rebased diff (claude-opus-5-5) reported 8 findings, all fixed, and the on-device capture found one more (the card over the scrub preview), also fixed. Screenshots of every state were scored by claude-opus-5-5 and gpt-6.1-sol across several rounds.
Redesign the phone player HUD with portrait docking, Up Next credits card, and restyled chrome
Reworks PlayerControls.kt so portrait layouts with a fitted picture dock controls around it; narrow layouts show labelled action tiles and compact transport controls instead of compact icon-only pills
Adds a credits Up Next card during closing credits in PlayerOverlay.kt, backed by an armed auto-start StateFlow and per-item decline tracking in PlayerViewModel.kt
Restyles shared player chrome in PlayerChrome.kt: near-black plate, 44dp row height, countdown lines replacing full-surface progress fills, and a scroll thumb in player menus
Simplifies the progress bar by removing the scrub-start tick and seek-delta bubble; renames the letterbox setting to Black Bars and makes the sleep timer's Off a selectable row
Risk: PlayerActionPill drops its compact parameter and formatSeekDelta is removed — callers relying on compact pills or seek-delta formatting must update; chrome hides fully while scrubbing via scrubChromeAlpha
The player UI adds an end-credits Up Next card and changes playback controls, overlays, progress display, and player sheets. The Android string catalogs add corresponding localized labels and playback diagnostics. Generated translation revision identifiers also change.
Changes: Player playback flow
Layer / File(s)
Summary
Credits Up Next behavior android-shared/src/androidMain/kotlin/.../MarkerSkipTarget.kt, android-shared/src/androidUnitTest/kotlin/.../MarkerSkipTargetTest.kt, androidApp/src/androidMain/kotlin/.../PlayerViewModel.kt, androidApp/src/androidMain/kotlin/.../IntroAutoSkipBanner.kt, androidApp/src/androidMain/kotlin/.../PlayerOverlay.kt
The player detects closing credits and tracks whether the Up Next card was declined for the current item. The overlay can show the next-episode card when its conditions are met, and the card exposes optional play-next and dismiss actions.
Controls use picture aspect for portrait docking and report clearance to the overlay. Narrow action layouts use icon-and-label tiles. Scrubbing, progress-bar chapter gaps, countdown lines, loading controls, menu scroll indicators, and fade behavior also change.
Player sheets and menu interactions androidApp/src/androidMain/kotlin/.../ChaptersSheet.kt, androidApp/src/androidMain/kotlin/.../TracksSheet.kt, androidApp/src/androidMain/kotlin/.../PlaybackQualitySheet.kt, androidApp/src/androidMain/kotlin/.../PlayerSettingsSheet.kt, androidApp/src/androidMain/kotlin/.../SleepTimerSheet.kt
The chapter sheet adds aligned start and length headings. The track selector moves into the panel header when audio tracks are available. The quality label, black-bars setting labels, and sleep timer selection rows change.
The generated catalogs add localized labels for credits, chapters, buffering quality, playback delivery and diagnostics, technical details, and black-bar options. The generator revision changes in the translation metadata and catalog comments.
sequenceDiagram
participant PlayerOverlay
participant MarkerSkipTarget
participant PlayerViewModel
participant CreditsUpNextCard
PlayerOverlay->>MarkerSkipTarget: Check whether playback is in closing credits
PlayerOverlay->>PlayerViewModel: Read episode, shuffle, decline, and auto-start state
PlayerOverlay->>CreditsUpNextCard: Display card when its conditions are met
CreditsUpNextCard->>PlayerViewModel: Submit decline or play-next action
Loading
Possibly related issues
Silo-Server/silo-android issue 848: The PR changes closing-credits detection, but does not add the requested Ask, Auto, and Off setting.
Silo-Server/silo-android issue 349: The PR changes the chapter sheet and sleep timer behavior covered by the audiobook validation cases.
Silo-Server/silo-android issue 321: The PR changes marker skip behavior and the closing-credits helper used by the phone skip flow.
Merge Risk: Moderate · up to 8e243
The new end-credits "Play next episode" card is largely replaced by the full-screen Up Next screen in normal playback, so the headline feature does not behave as designed. A declined card can also reappear when playback ends. Resolve or consciously accept these before merging; the layout issues are minor.
Security architecture risk: Low · up to 8e243
The new next-episode action reuses existing playback controls and preserves Watch Party authority. No material security regression was established in the inspected paths, but incomplete coverage and unverified state restoration leave some uncertainty.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
inferred — The inspected new action affects the current player's resolved next episode through the existing playback-session handoff. The card does not supply a new destination or credential to the advancement method; that method reads the next content identity from current playback state.
Trust Boundaries and Controls
observed — Marker timing determines card eligibility, while room authority remains checked at the playback-action boundary. Closing-credits metadata therefore does not itself authorize local advancement in a Watch Party.
Resilience and Maintainability Implications
observed — The existing transition gate binds a handoff to a content identity and an expected media-mount token. It rejects duplicate begins and mismatched first-frame completion, preserving protection against stale callbacks for the new caller.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat(player): redesign the phone player HUD" matches the main change. The PR redesigns the Android phone player controls, skip buttons, credits up-next card, menus, and settings labels. The…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description is specific and related to the changeset. It explains the phone player HUD redesign: skip button plates, the Up Next credits card with Play next episode and Not now actions, portrait d…
Full details: Title check
Explanation
The title "feat(player): redesign the phone player HUD" matches the main change. The PR redesigns the Android phone player controls, skip buttons, credits up-next card, menus, and settings labels. The title is specific and concise, and it follows a conventional commit style.
Full details: Description check
Explanation
The description is specific and related to the changeset. It explains the phone player HUD redesign: skip button plates, the Up Next credits card with Play next episode and Not now actions, portrait docking of controls, 48dp menu rows, chapter Starts and Length columns, the sleep timer Off row, the Black bars settings rename, and reduced Auto quality labelling. It also covers the inClosingCredits helper with its unit test, the shared translation catalog, validation results, and risks. These match the file summaries, which cover PlayerChrome, PlayerControls, PlayerOverlay, IntroAutoSkipBanner, PlayerViewModel, SleepTimerSheet, and the string catalogs.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
The reason will be displayed to describe this comment to others. Learn more.
Joined episode title lacks bidirectional isolation
Mixed-script titles and punctuation in next.title can render in the wrong order next to the episode code. Apply bidirectional isolation before joining the title to the season and episode caption.
File androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/IntroAutoSkipBanner.kt, line 222:
Joined episode title lacks bidirectional isolation
Isolate the episode title before joining it to the season and episode caption. Without bidirectional isolation, mixed-script titles and punctuation can render in the wrong order next to the episode code.
Kody rule violation: [Isolate joined bidirectional text without hiding its paragraph direction](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/2154882e-6f3e-47b0-81fa-38b5c542cacd?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)
The reason will be displayed to describe this comment to others. Learn more.
The credits card is suppressed during normal playback
During normal playback, onApproachingEnd sets showUpNext before the card can render, hiding the episode information and actions. Coordinate the Up Next trigger with the card so it remains visible during credits.
Prompt for LLM
File androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerOverlay.kt, lines 663-665:
The credits card is suppressed during normal playback
During normal playback, crossing the closing-credits boundary invokes `onApproachingEnd`, which sets `showUpNext` before this card can render, so the new episode information and actions appear only when playback enters credits without crossing that boundary. Coordinate the existing Up Next trigger with this card so it remains visible during ordinary credits playback.
The PR describes Pixel 9 phone captures and says tablet and foldable captures were unavailable. These changes also run in the phone app on tablets and foldables, so evidence is incomplete for:
Player HUD, controls, progress bar, and portrait docking (PlayerControls.kt, PlayerOverlay.kt, PlayerProgressBar.kt): Android tablet and foldable folded/open. Please add before-and-after captures of matching states on each; include a recording for scrubbing and the animated docking/countdown behavior.
Closing-credits Up Next card and skip prompts (IntroAutoSkipBanner.kt, PlayerOverlay.kt): Android tablet and foldable folded/open. Please add before-and-after captures of matching states and a recording of the countdown and card actions.
Player menus, chapters, tracks, sleep timer, quality, and settings (ChaptersSheet.kt, TracksSheet.kt, SleepTimerSheet.kt, PlaybackQualitySheet.kt, PlayerSettingsSheet.kt, PlayerMenu.kt): Android tablet and foldable folded/open. Please add before-and-after captures of the same sheets and data on each.
The evidence page should cover the Android phone, tablet, and foldable both folded and open. Android TV is not reached by the changed UI paths.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Keep the credits card clear of the landscape transport.
At a 640dp landscape width with no end inset, this calculation leaves 149dp beside the centered transport. The 200dp minimum can place a long-title card from x=416dp across the transport’s right edge at x=455dp. The card can cover part of the forward-skip control while controls are visible. Cap its width to the available side space and allow the actions to wrap, or move the card above the transport.
The reason will be displayed to describe this comment to others. Learn more.
Major · Functional Correctness · Heavy lift
Supported by static analysis
Script executed:
rg -n 'onApproachingEnd|showUpNext|upNextCreditsStart|fun onPositionChanged|inClosingCredits' androidApp/src/androidMain/kotlin android-shared/src/androidMain/kotlin
sed -n '640,705p' androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerOverlay.kt
Repository: Silo-Server/silo-android
Length of output: 13935
Script executed:
cat -n androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt | sed -n '3330,3362p'
cat -n androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt | sed -n '6190,6270p'
Repository: Silo-Server/silo-android
Length of output: 6551
The inline credits card is shadowed on a normal credits crossing.
Outside a room, the credits crossing sets showUpNext = true in commitApproachingEnd. The card block requires !state.showUpNext, so the card does not render. The full-screen Up Next screen replaces it at the credits start. The card's "Play next episode" and "Not now" actions then appear only in narrower cases, such as a room session.
The inspected code does not show whether the full-screen transition should start at the credits start or at a later point. Choose one of these:
If the full-screen screen should start at the credits start, remove the card from this flow, or keep the card only where it is still reachable.
If the card should remain visible through the credits, track its presentation separately from showUpNext. Start the full-screen transition only at the intended later point.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Keep the credits card dismissed when playback ends.
If the viewer selects “Not now,” dismissUpNext() sets autoAdvanceHandled = true. At STATE_ENDED, onApproachingEnd() then sets showUpNext = true without checking creditsUpNextDeclined. The full-screen Up Next card reappears for the item that the viewer declined. Suppress that end-of-playback reopen for a declined item.
# Header layout, Close reservation, and the segmented control body.
cat -n androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerChrome.kt | sed -n '320,440p'# TracksSheet call site and how the segmented control is placed in the header.
cat -n androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/TracksSheet.kt | sed -n '60,140p'# Panel width constraints in sheet and docked presentations.
cat -n androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerMenu.kt | sed -n '184,290p'
Repository: Silo-Server/silo-android
Length of output: 15069
Keep the tab count visible when the segment text grows.
The Subtitles/Audio control now sits in the header beside the Close disc. Each segment has a fixed weighted width. Its label and count have no overflow handling, so the default clip applies. When the label and count together exceed the segment width, which can happen at enlarged text sizes in a narrow panel, the count is cut off.
Let the label shrink with an ellipsis so that the count keeps its natural width:
Suggested fix
Apply this to the label Text in PlayerSegmentedControl. Give it Modifier.weight(1f, fill = false) and overflow = TextOverflow.Ellipsis, while the count keeps its natural width.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: N/A
Validation tasks: changes #321 C1, C2; changes #323 C1, C3; changes #325 C1; changes #327 C1
Several parts of the phone player's controls were hard to read or use:
This change redesigns the phone player's controls, menus and skip buttons. On the same states, the checks now find no contrast, target-size or overlap failures.
Approach
New text comes from the shared catalog: the keys are in Silo-Server/silo-translations#14, and the generated catalog is synced from that branch. One helper in android-shared,
inClosingCredits, decides whether a credits range is the closing one, with a unit test.Phone only. Android TV gets its own pull request; the Apple clients and the web have theirs.
Validation
./gradlew testDebugUnitTest(all modules): pass.:android-shared:lintDebug :androidApp:lintDebug :androidTvApp:lintDebug :androidApp:lintVitalRelease :androidTvApp:lintVitalRelease): pass, nothing new beyond the baselines. The supply-chain scripts were not run: they need Ruby, which the test machine lacks, and this change touches no build files.:androidApp:assembleDebugbuilds.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-885/
Surface and build: Android phone, this branch, on a Pixel 9 emulator (Android 36), landscape and upright.
Risks
.silo-translationsnames a local catalog build until feat(catalog): add the native player HUD redesign's text silo-translations#14 merges and publishes a release; the pin moves to it before merge.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Redesign the phone player HUD with portrait docking, Up Next credits card, and restyled chrome
PlayerActionPilldrops itscompactparameter andformatSeekDeltais removed — callers relying on compact pills or seek-delta formatting must update; chrome hides fully while scrubbing viascrubChromeAlphaMacroscope summarized 8e24374.