Repository navigation
feat(player): show the server quality menu on phone and align the TV picker - #495
Conversation
…picker The phone player had no way to pick the server's playback qualities: its "Quality" sheet listed file versions instead. It now has a Quality menu built from the plan's available_qualities (Auto first, then each entry in server order with its bitrate and a check on the active one), shown whenever a plan is active, and the file list becomes a separate Version sheet. A failed quality change now says so instead of reporting a subtitle failure. The TV Quality picker gets the same Auto row, "Original" name, bitrates and check. On both, a single-entry plan lists Auto and Original, as the Apple clients do. Naming, bitrate formatting and active-entry resolution live in shared so both apps render the menu the same way. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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:
|
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds shared playback-quality menu construction and selection logic. Phone playback separates streaming-quality selection from file-version selection and tracks quality transactions. The TV player builds quality options from the shared menu and displays bitrate labels. ChangesPlayback quality selection
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant PlaybackQualitySheet
participant PlayerOverlay
participant PlayerViewModel
participant MobileSubtitleTransactionAdapter
PlaybackQualitySheet->>PlayerOverlay: selected quality ID
PlayerOverlay->>PlayerViewModel: onSelectQuality
PlayerViewModel->>MobileSubtitleTransactionAdapter: submit quality selection
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The supplied evidence identifies no actionable issue blocking the phone and TV quality-menu changes after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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 |
|
Evidence: SOFT FAIL The diff touches both phone (
The captures also come from a pre-rebase build rather than head Grok commenting on Quick's behalf. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db9ec43741
ℹ️ 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".
… delivered entry Reloads of the same title (recovery restarts, retries, the next shuffle part) now start with the quality picked from the menu instead of the route's quality. The phone's Quality check, gear label and same-entry guard now read the plan's delivered recipe, so a stored resolution preference held lower by a bitrate cap marks the entry that plays, as the TV already does. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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:
|
|
The Evidence section now says which states are not shown and why: the single-entry menu, the failure message, and the Watch Party note. The test title always offers several qualities, the message needs a failed replan, and the note needs a Watch Party room. Unit tests cover the single-entry menu and the failure message. The later commits, including 85773fe, do not change the captured screens. Claude Code (claude-opus-5-5) commenting on Quick's behalf. |
Brings in #487, #492, #493, #495 and #496. Only #495 (server quality menu) overlapped the restyle: - Phone: the Quality pill opens the plan's quality menu whenever a plan exists. The file picker becomes the Version menu, reached from the settings menu, which gains a Version row. Both use the new player menu chrome, so the Quality menu docks on the right in landscape like the other player menus. - TV: the options panel keeps the restyled layout and takes #495's Quality row (Auto first, bitrates as the row's trailing value). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Problem
Related issue: N/A
Validation tasks: changes #330 C2 and #331 C2 (the quality list a TV sends to a phone remote now starts with Auto and names the source entry "Original")
Phone viewers cannot choose a streaming quality. The player's "Quality" button and the gear sheet's Quality row open a list of the title's files, so the server's quality menu (Original, 1080p High, 720p Medium and so on) is not reachable on phone at all. On Android TV the Quality picker shows the server's entries, but the source entry reads as the raw label "original", there is no Auto row to hand the choice back to the server, no bitrates, and no clear mark on the active entry.
This change gives the phone a real Quality menu, renames the file list to Version, and brings the TV picker in line with the web player's menu.
Approach
Both apps build the menu from the playback plan's
available_qualities: Auto first, then every server entry in server order. Each row shows the server's display name (or "Original" for the source entry, else the label) and its bitrate, such as "40.5 Mbps" or "1.5 Mbps", with a check on the active entry. A pick sends the entry's label verbatim through the existingquality_changereplan; Auto sendsauto. The naming, bitrate formatting, and active-entry rules are inshared, so phone and TV agree. The active-entry rules follow the web player, including how a stored preference such as1080pmaps onto the plan's entries, judged against what the plan actually delivers when a bitrate cap holds it lower. Unlike the web player, the control is shown whenever a plan is active: a plan with a single entry lists Auto and Original, as the Apple clients do, and that entry is marked whenever the preference is anything but Auto. Only playback without a plan, such as a download playing offline, has no Quality control.Phone:
TV: the Quality picker gains the Auto row, "Original", bitrates, and the check. The row is now enabled for a single-entry plan too, where it used to be disabled.
This pairs with the server change "feat(playback): offer lower qualities from a lower-resolution version when 4K transcoding is off" (Silo-Server/silo-server#2030) but does not depend on it. Any plan's entries render the same way, including that change's plain-resolution entry such as "1080p".
Validation
./scripts/test-check-build-supply-chain.shand./scripts/check-build-supply-chain.sh: pass../gradlew testDebugUnitTest: pass. New shared tests cover menu order, naming, bitrate formatting, and active-entry resolution, including stored resolution preferences and bitrate-capped plans; the TV option tests were updated for the Auto row and the single-entry menu, a transaction test checks that a failed quality change is told apart from a subtitle failure, a view-model test checks that a same-title retry starts with the picked quality and another title does not, and a phone test checks that a bitrate-capped plan marks the delivered entry.:android-shared:lintDebug :androidApp:lintDebug :androidTvApp:lintDebug :androidApp:lintVitalRelease :androidTvApp:lintVitalRelease): pass, no findings in the changed files.:androidApp:assembleDebugand:androidTvApp:assembleDebug: pass.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/player-quality-menu/
Surface and build: Android phone emulator and Android TV emulator; before from
mainat 9343dde, after from this branch before its rebase. The later commits (single-entry menus, the failure message, the review fixes) do not alter the screens shown.Not shown, on purpose: the single-entry menu (Auto and Original, with the TV row enabled), the "Couldn't change quality. Try again." message, and the Watch Party note in the phone menu. The test title always offers several qualities, the message needs a failed replan, and the note needs a Watch Party room. Unit tests cover the single-entry menu and the failure message.
Risks
-1Auto id still work.Checklist
AI Disclosure
🤖 Generated with Claude Code