Skip to content

feat(tv): redesign the Android TV player HUD - #886

Closed
Quick104 wants to merge 1 commit into
mainfrom
feat/player-hud-androidtv
Closed

Quick104 wants to merge 1 commit into
mainfrom
feat/player-hud-androidtv

Conversation

@Quick104

@Quick104 Quick104 commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #322 C1, C2, C3; changes #324 C1, C3, C5; changes #326 C1, C4; changes #328 C1, C5

On Android TV, several parts of the player's options panel and credits were confusing from the couch:

  • The panel had six tabs (Info, Stats, Video, Audio, Subtitles, Chapters), and Stats was a list of raw decoder and codec names.
  • During the credits, the Skip Credits pill looked disabled and gave no sign of which episode plays next.
  • The scrubber and a subtitle row had no screen-reader label, and the elapsed time measured 2.44:1 over a bright frame.

This change redesigns the Android TV options panel, the credits prompt and the skip pills. On the same states, the checks now find no contrast or label failures.

Approach

  • Panel:
    • Five tabs: Subtitles, Audio, Chapters, Settings and Info, each sized to its content.
    • Settings gathers picture and playback options, such as HDR passthrough, speed, intro skip and Auto-play next. Auto-play next shows whenever something can play next, including a shuffle.
    • Info shows the title, runtime and synopsis beside what's playing (video, audio, subtitles, chapter).
    • Technical details in Info replaces the Stats tab. It opens with a plain summary (delivery, video, audio, connection, and whether playback has buffered or dropped frames), then the decoder and codec names.
  • Audio tab: says what reaches the TV and where it's decoded (the app, the TV's audio hardware, or an AV receiver), and why audio delay is unavailable when it is.
  • Chapters tab: shows Starts and Length columns.
  • Credits:
    • In the closing credits, when a next episode is lined up, a card names it and 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, and focus moves to the Skip Credits pill that replaces the card.
    • The card's line ("Credits end in 1:59 · then it plays") counts to the end of the credits. It claims auto-play only when it will happen, so not after Keep Watching or once the auto-play limit is reached.
    • Earlier credits ranges keep Skip Credits.
    • The choice lives in the player's view model, so the remote's OK key and the card always agree, including after the next episode starts in place.
  • Skip pills and type: pills and the card use the HUD's type styles, at 14sp or larger. The title block sits on a deeper scrim, so it stays readable over a white end card.

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. The synopsis and overview reach the player through VideoPlaybackStartResult and VideoPlayerUiState in android-shared.

Android TV only. The phone app has its own pull request (#885); the Apple clients and the web have theirs.

Validation

  • ./gradlew testDebugUnitTest (all modules): pass. New: a test for which credits range offers the next episode.
  • 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.
  • :androidTvApp:assembleDebug builds.
  • Screen states: 13 fixed states, plus 6 added (the episode's Settings and Info tabs, the credits card with and after Not now, and 1.5× font scale). Each was captured on an Android TV emulator (API 36, 1920×1080), driven with the D-pad against a dev server with fixed media. Each state is checked for contrast, target size, overlap and clipping, and labels. Before, on the 13 states: 1 contrast and 4 label failures. After, on all 19: none.
  • Not checked: a physical TV, and translated languages by eye. At 1.5× font scale, Technical details truncates some long decoder names.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-android/pr-886/

Surface and build: Android TV emulator (API 36, 1920×1080), this branch.

Risks

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code; Codex CLI (design reviews)
  • Model(s): claude-opus-5-5 (implementation, code review, design reviews); gpt-6.1-sol (design reviews)
  • Involvement: Fully AI-generated at the maintainer's request. The maintainer chose the tab layout and the "Not now" wording; the result is not yet human verified.
  • Adversarial review: a code review (claude-opus-5-5) found 6 bugs and several smaller issues, all fixed. The on-device capture found 4 more (focus after Not now, the title over a white end card, mixed typefaces, a truncated value at large text), also fixed. Screenshots of every state were scored by claude-opus-5-5 and gpt-6.1-sol across several rounds.

🤖 Generated with Claude Code

Note

Redesign the Android TV player HUD and add credits Up Next card

  • Rebuilds the HUD in TvPlayerHud.kt: it opens on Subtitles by default, drops the separate Stats tab (technical readings now live behind a row in the Info pane), uses a fixed 660dp panel width capped at 336dp, and fully fades chrome while a picker is open
  • Info pane now shows title eyebrow, runtime (localized hours/minutes), and the synopsis, which flows from the playback result through VideoPlaybackSessionCoordinator.kt and TvPlayerViewModel.kt
  • Adds a credits Up Next card in TvPlayerScreen.kt: during the last credits range (outside rooms) it shows the next episode with auto-play messaging and a Not now action; selecting it plays the next episode immediately
  • Settings pane reorganizes into Picture/Playback columns with switch controls for HDR, Dolby Vision, and auto-play; Audio pane reports delivered format, channel layout, and decoding destination; intro skip banners no longer draw a countdown fill
  • Fixes audio codec labels in TvSubtitleChoiceLabels.kt: keys starting with mp4a. map to AAC and dca maps to DTS
  • Behavioral Change: HUD tab order is now Subtitles, Audio, Chapters, Video (labeled Settings), Info; Stats tab is removed and raw readings no longer include resolution, frame rate, HDR mode, or estimated bandwidth. Scrubber always shows the position puck and adds accessibility descriptions

Macroscope summarized 185efbf.

@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Pre-merge checks: Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Description check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added the size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. label Nov 11, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T23:38:59.333674Z 185efbf PR opened
🔒 Security Review ✅ Completed 2026-11-11T23:40:28.485891Z 185efbf PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@macroscopeapp

macroscopeapp Bot commented Nov 11, 2026

Copy link
Copy Markdown
  • HUD D-pad focus navigation and the Technical details toggle — Android TV: please add a short recording showing focus movement through the redesigned tabs and into/out of Technical details; the listed fixed-state captures do not demonstrate focus movement.
  • Credits countdown and the “Not now” to Skip Credits focus handoff — Android TV: please add a short recording showing the countdown and the transition; fixed-state captures do not demonstrate timing or focus movement.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 185efbfe78

ℹ️ 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".

Comment on lines +2851 to +2854
private fun PlayerStatsSnapshot.audioFormat(plan: PlaybackExecutionPlan?): HudFormat {
val delivered = audioFormatShortName(audioCodec)
val source = audioFormatShortName(plan?.sourceFile?.audioCodec)
return HudFormat(delivered, source?.takeIf { delivered != null && it != delivered })

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Compare audio formats against the currently selected source track

When an ORIGINAL_HTTP file contains tracks with different codecs, switching tracks locally can make this report a conversion that never happened. TvPlayerViewModel.reconcileDesiredAudio() applies those switches through pendingLocalAudioSelection without replacing the playback plan, so stats.audioCodec follows the newly selected track while plan.sourceFile.audioCodec remains unchanged. For example, switching from DTS to an existing AAC track makes Info and Audio say “AAC, from DTS” even though playback is still direct. Resolve the source codec from the currently selected catalog track, or require evidence of a server audio transformation before describing the codec difference as a conversion.

Useful? React with 👍 / 👎.

Comment on lines +8170 to +8172
val upNextStart = markerTimeline.upNextCreditsStart() ?: return null
if (position < upNextStart) return null
return next.takeIf { markerSkipTarget(position, markerTimeline)?.kind == ManualMarkerKind.Credits }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug high

The Up Next overlay hides the credits card during normal playback

During normal playback, the credits card and its Not now action never appear because onApproachingEnd() opens showNextUp at the same upNextCreditsStart() crossing, and TvPlayerOverlays suppresses the card. Coordinate the surfaces so the card remains visible before the full Up Next overlay.

Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt, lines 8170-8172:

The Up Next overlay hides the credits card during normal playback

The credits card becomes eligible at the same `upNextCreditsStart()` crossing that calls `onApproachingEnd()`, which opens `showNextUp`; `TvPlayerOverlays` suppresses the card whenever `showNextUp` is true. Consequently, during normal playback the redesigned card and its `Not now` action never appear unless the viewer seeks or resumes into the credits; coordinate the two surfaces so the credits card remains visible before the full Up Next overlay.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant